1{ lib
2, buildPythonPackage
3, fetchPypi
4, cffi
5, enum34
6, construct
7, pytest
8, hypothesis
9}:
10
11buildPythonPackage rec {
12 pname = "brotlipy";
13 version = "0.7.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
18 };
19
20 propagatedBuildInputs = [ cffi enum34 construct ];
21
22 checkInputs = [ pytest hypothesis ];
23
24 checkPhase = ''
25 py.test
26 '';
27
28 # Missing test files
29 doCheck = false;
30
31 meta = {
32 description = "Python bindings for the reference Brotli encoder/decoder";
33 homepage = "https://github.com/python-hyper/brotlipy/";
34 license = lib.licenses.mit;
35 };
36}