summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/brotlipy/default.nix
blob: e842e44d486e883d29a58dc4e159ce3fdd3e522b (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
41
42
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  cffi,
  construct,
  fetchPypi,
  hypothesis,
  pytest,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "brotlipy";
  version = "0.7.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Nt7wuFm+ryGRAVe0wz6zsG2M5FnJQhAvFpiMym6hZN8=";
  };

  build-system = [ setuptools ];

  propagatedNativeBuildInputs = [ cffi ];

  dependencies = [
    cffi
    construct
  ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  # Missing test files
  doCheck = false;

  pythonImportsCheck = [ "brotli" ];

  meta = {
    description = "Python bindings for the reference Brotli encoder/decoder";
    homepage = "https://github.com/python-hyper/brotlipy/";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}