mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
29 lines
688 B
Nix
29 lines
688 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools-scm, zopfli, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zopfli";
|
|
version = "0.2.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1ipjkcgdbplsrhr31ypk48px8cax4cm9gcjj7yrcrhg20ql3s9p5";
|
|
extension = "zip";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
buildInputs = [ zopfli ];
|
|
USE_SYSTEM_ZOPFLI = "True";
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "cPython bindings for zopfli";
|
|
homepage = "https://github.com/obp/py-zopfli";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
};
|
|
}
|