aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/brotlipy/default.nix
blob: 1dd2a070480fc077b0e00c14defd23eb92b7163b (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
{ lib
, buildPythonPackage
, fetchPypi
, cffi
, enum34
, construct
, pytest
, hypothesis
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
  };

  propagatedBuildInputs = [ cffi enum34 construct ];

  checkInputs = [ pytest hypothesis ];

  checkPhase = ''
    py.test
  '';

  # Missing test files
  doCheck = false;

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