1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 13:29:13 +03:00
nixpkgs/pkgs/development/python-modules/pypng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
700 B
Nix
Raw Normal View History

2022-02-13 18:11:19 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
2022-02-13 18:11:19 +01:00
}:
buildPythonPackage rec {
pname = "pypng";
version = "0.0.21";
format = "pyproject";
src = fetchFromGitHub {
owner = "drj11";
repo = "pypng";
rev = "refs/tags/${pname}-${version}";
2022-02-13 18:11:19 +01:00
sha256 = "sha256-JU1GCSTm2s6Kczn6aRcF5DizPJVpizNtnAMJxTBi9vo=";
};
nativeBuildInputs = [
setuptools
];
2022-02-13 18:11:19 +01:00
pythonImportsCheck = [ "png" ];
checkInputs = [ 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 ];
};
}