nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "pypng";
9 version = "0.0.21";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "drj11";
14 repo = "pypng";
15 rev = "${pname}-${version}";
16 sha256 = "sha256-JU1GCSTm2s6Kczn6aRcF5DizPJVpizNtnAMJxTBi9vo=";
17 };
18
19 pythonImportsCheck = [ "png" ];
20
21 checkInputs = [ pytestCheckHook ];
22
23 meta = with lib; {
24 description = "Pure Python library for PNG image encoding/decoding";
25 homepage = "https://github.com/drj11/pypng";
26 license = licenses.mit;
27 maintainers = with maintainers; [ prusnak ];
28 };
29}