at 23.05-pre 700 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, setuptools 6}: 7 8buildPythonPackage rec { 9 pname = "pypng"; 10 version = "0.0.21"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "drj11"; 15 repo = "pypng"; 16 rev = "refs/tags/${pname}-${version}"; 17 sha256 = "sha256-JU1GCSTm2s6Kczn6aRcF5DizPJVpizNtnAMJxTBi9vo="; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools 22 ]; 23 24 pythonImportsCheck = [ "png" ]; 25 26 checkInputs = [ pytestCheckHook ]; 27 28 meta = with lib; { 29 description = "Pure Python library for PNG image encoding/decoding"; 30 homepage = "https://github.com/drj11/pypng"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ prusnak ]; 33 }; 34}