nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python311Packages.pypng,python312Packages.pypng: fix test imports and PATH

+24 -1
+12 -1
pkgs/development/python-modules/pypng/default.nix
··· 21 21 setuptools 22 22 ]; 23 23 24 - pythonImportsCheck = [ "png" ]; 24 + patches = [ 25 + # pngsuite is imported by code/test_png.py but is not defined in 26 + # setup.cfg, so it isn't built - this adds it to py_modules 27 + ./setup-cfg-pngsuite.patch 28 + ]; 29 + 30 + # allow tests to use the binaries produced by this package 31 + preCheck = '' 32 + export PATH="$out/bin:$PATH" 33 + ''; 34 + 35 + pythonImportsCheck = [ "png" "pngsuite" ]; 25 36 26 37 nativeCheckInputs = [ pytestCheckHook ]; 27 38
+12
pkgs/development/python-modules/pypng/setup-cfg-pngsuite.patch
··· 1 + diff --git a/setup.cfg b/setup.cfg 2 + index 04bba8a..db159d2 100644 3 + --- a/setup.cfg 4 + +++ b/setup.cfg 5 + @@ -28,6 +28,7 @@ package_dir = 6 + = code 7 + py_modules = 8 + png 9 + + pngsuite 10 + scripts = 11 + code/prichunkpng 12 + code/pricolpng