2021-10-19 15:57:37 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, zopfli, pytest }:
|
2020-08-24 11:07:18 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zopfli";
|
2021-10-19 15:53:35 +01:00
|
|
|
version = "0.1.9";
|
2020-08-24 11:07:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-19 15:53:35 +01:00
|
|
|
sha256 = "78de3cc08a8efaa8013d61528907d91ac4d6cc014ffd8a41cc10ee75e9e60d7b";
|
2020-08-24 11:07:18 +01:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2021-10-19 15:53:35 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2021-10-19 15:57:37 +01:00
|
|
|
buildInputs = [ zopfli ];
|
|
|
|
USE_SYSTEM_ZOPFLI = "True";
|
|
|
|
|
2021-04-03 13:43:52 +01:00
|
|
|
# doesn't work with pytestCheckHook
|
2020-08-24 11:07:18 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "cPython bindings for zopfli";
|
|
|
|
homepage = "https://github.com/obp/py-zopfli";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|