nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 40 lines 776 B view raw
1{ 2 lib, 3 brotli, 4 buildPythonPackage, 5 pkgconfig, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "brotli"; 12 inherit (brotli) version src; 13 pyproject = true; 14 15 build-system = [ 16 pkgconfig 17 setuptools 18 ]; 19 20 # only returns information how to really build 21 dontConfigure = true; 22 23 env.USE_SYSTEM_BROTLI = 1; 24 25 buildInputs = [ 26 brotli 27 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 enabledTestPaths = [ "python/tests" ]; 32 33 meta = { 34 changelog = "https://github.com/google/brotli/blob/${src.tag}/CHANGELOG.md"; 35 homepage = "https://github.com/google/brotli"; 36 description = "Generic-purpose lossless compression algorithm"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ mdaniels5757 ]; 39 }; 40}