Skip to content

Commit

Permalink
python311Packages.zconfig: migrate to pytestCheckHook
Browse files Browse the repository at this point in the history
- add pythonImportsCheck
  • Loading branch information
fabaff committed Jan 12, 2024
1 parent 6acd292 commit 4d7c57e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions pkgs/development/python-modules/zconfig/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
, fetchPypi
, manuel
, pygments
, pytestCheckHook
, pythonOlder
, setuptools
, zope-testrunner
}:

buildPythonPackage rec {
pname = "zconfig";
version = "4.0";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.7";

Expand All @@ -24,9 +26,13 @@ buildPythonPackage rec {

patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;

nativeBuildInputs = [
setuptools
];

buildInputs = [
manuel
docutils
manuel
];

propagatedBuildInputs = [
Expand All @@ -35,6 +41,15 @@ buildPythonPackage rec {

nativeCheckInputs = [
pygments
pytestCheckHook
];

pythonImportsCheck = [
"ZConfig"
];

pytestFlagsArray = [
"-s"
];

meta = with lib; {
Expand Down

0 comments on commit 4d7c57e

Please sign in to comment.