41 lines
776 B
Nix
41 lines
776 B
Nix
{
|
|
lib,
|
|
brotli,
|
|
buildPythonPackage,
|
|
pkgconfig,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "brotli";
|
|
inherit (brotli) version src;
|
|
pyproject = true;
|
|
|
|
build-system = [
|
|
pkgconfig
|
|
setuptools
|
|
];
|
|
|
|
# only returns information how to really build
|
|
dontConfigure = true;
|
|
|
|
env.USE_SYSTEM_BROTLI = 1;
|
|
|
|
buildInputs = [
|
|
brotli
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [ "python/tests" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/google/brotli/blob/${src.tag}/CHANGELOG.md";
|
|
homepage = "https://github.com/google/brotli";
|
|
description = "Generic-purpose lossless compression algorithm";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mdaniels5757 ];
|
|
};
|
|
}
|