depot/third_party/nixpkgs/pkgs/development/python-modules/zopfli/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

38 lines
731 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools-scm,
zopfli,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "zopfli";
version = "0.2.3";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-28mEG+3XNgQeteaYLNktqTvuFFdF9UIvN5X28ljNxu8=";
extension = "zip";
};
format = "pyproject";
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ zopfli ];
USE_SYSTEM_ZOPFLI = "True";
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "cPython bindings for zopfli";
homepage = "https://github.com/obp/py-zopfli";
license = licenses.asl20;
maintainers = [ maintainers.sternenseemann ];
};
}