nixpkgs/pkgs/development/python-modules/pypng/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
704 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "pypng";
version = "0.0.21";
format = "pyproject";
src = fetchFromGitHub {
owner = "drj11";
repo = "pypng";
rev = "refs/tags/${pname}-${version}";
hash = "sha256-JU1GCSTm2s6Kczn6aRcF5DizPJVpizNtnAMJxTBi9vo=";
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [ "png" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Pure Python library for PNG image encoding/decoding";
homepage = "https://github.com/drj11/pypng";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}