summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/brotli/default.nix
blob: 1f2ed960bf20e71fee388ec92119c96f0352d3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  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 ];
  };
}