python310Packages.purepng: fix build
This commit is contained in:
parent
d6c1f83e99
commit
6db453b3c6
|
@ -32,17 +32,26 @@ buildPythonPackage {
|
||||||
|
|
||||||
# numpy is optional - if not supplied, tests simply have less coverage
|
# numpy is optional - if not supplied, tests simply have less coverage
|
||||||
nativeCheckInputs = [ numpy ];
|
nativeCheckInputs = [ numpy ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace code/test_png.py \
|
||||||
|
--replace numpy.bool bool
|
||||||
|
'';
|
||||||
|
|
||||||
# checkPhase begins by deleting source dir to force test execution against installed version
|
# checkPhase begins by deleting source dir to force test execution against installed version
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
rm -r code/png
|
rm -r code/png
|
||||||
${python.interpreter} code/test_png.py
|
${python.interpreter} code/test_png.py
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pure Python library for PNG image encoding/decoding";
|
description = "Pure Python library for PNG image encoding/decoding";
|
||||||
homepage = "https://github.com/scondo/purepng";
|
homepage = "https://github.com/scondo/purepng";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ris ];
|
maintainers = with maintainers; [ ris ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue