Loading pkgs/development/python-modules/pypng/default.nix +12 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,18 @@ buildPythonPackage rec { setuptools ]; pythonImportsCheck = [ "png" ]; patches = [ # pngsuite is imported by code/test_png.py but is not defined in # setup.cfg, so it isn't built - this adds it to py_modules ./setup-cfg-pngsuite.patch ]; # allow tests to use the binaries produced by this package preCheck = '' export PATH="$out/bin:$PATH" ''; pythonImportsCheck = [ "png" "pngsuite" ]; nativeCheckInputs = [ pytestCheckHook ]; Loading pkgs/development/python-modules/pypng/setup-cfg-pngsuite.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line diff --git a/setup.cfg b/setup.cfg index 04bba8a..db159d2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ package_dir = = code py_modules = png + pngsuite scripts = code/prichunkpng code/pricolpng Loading
pkgs/development/python-modules/pypng/default.nix +12 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,18 @@ buildPythonPackage rec { setuptools ]; pythonImportsCheck = [ "png" ]; patches = [ # pngsuite is imported by code/test_png.py but is not defined in # setup.cfg, so it isn't built - this adds it to py_modules ./setup-cfg-pngsuite.patch ]; # allow tests to use the binaries produced by this package preCheck = '' export PATH="$out/bin:$PATH" ''; pythonImportsCheck = [ "png" "pngsuite" ]; nativeCheckInputs = [ pytestCheckHook ]; Loading
pkgs/development/python-modules/pypng/setup-cfg-pngsuite.patch 0 → 100644 +12 −0 Original line number Diff line number Diff line diff --git a/setup.cfg b/setup.cfg index 04bba8a..db159d2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ package_dir = = code py_modules = png + pngsuite scripts = code/prichunkpng code/pricolpng