9 buildPythonPackage rec {
11 version = "0.20220715.0";
14 src = fetchFromGitLab {
17 rev = "refs/tags/${pname}-${version}";
18 hash = "sha256-tTnsGCAmHexDWm/T5xpHpcBaQcBEqMfTFaoOAeC+pDs=";
21 nativeBuildInputs = [ setuptools ];
24 # pngsuite is imported by code/test_png.py but is not defined in
25 # setup.cfg, so it isn't built - this adds it to py_modules
26 ./setup-cfg-pngsuite.patch
29 # allow tests to use the binaries produced by this package
31 export PATH="$out/bin:$PATH"
34 pythonImportsCheck = [
39 nativeCheckInputs = [ pytestCheckHook ];
42 description = "Pure Python library for PNG image encoding/decoding";
43 homepage = "https://github.com/drj11/pypng";
44 license = licenses.mit;
45 maintainers = with maintainers; [ prusnak ];