Files
nixpkgs/pkgs/development/python-modules/pypng/default.nix
T
Tom Hubrecht e577e1f7c8 python3Packages.pypng: 0.0.21 -> 0.20220715.0
The source was moved to GitLab and the naming scheme also changed
2024-05-16 11:08:01 +02:00

35 lines
706 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitLab
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "pypng";
version = "0.20220715.0";
pyproject = true;
src = fetchFromGitLab {
owner = "drj11";
repo = "pypng";
rev = "refs/tags/${pname}-${version}";
hash = "sha256-tTnsGCAmHexDWm/T5xpHpcBaQcBEqMfTFaoOAeC+pDs=";
};
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 ];
};
}