2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, zopfli, pytest }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zopfli";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.2.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-x9PzVcSR84TkNNsuYmheq269pmuWTonhdUuxFLLTjOo=";
|
2020-09-25 04:45:31 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
buildInputs = [ zopfli ];
|
|
|
|
USE_SYSTEM_ZOPFLI = "True";
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
# doesn't work with pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "cPython bindings for zopfli";
|
|
|
|
homepage = "https://github.com/obp/py-zopfli";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|