2018-01-01 15:59:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cffi
|
|
|
|
, enum34
|
|
|
|
, construct
|
2018-01-01 16:00:21 +00:00
|
|
|
, pytest
|
|
|
|
, hypothesis
|
2018-01-01 15:59:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brotlipy";
|
2018-01-01 16:00:21 +00:00
|
|
|
version = "0.7.0";
|
2018-01-01 15:59:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-01 16:00:21 +00:00
|
|
|
sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
|
2018-01-01 15:59:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cffi enum34 construct ];
|
|
|
|
|
2018-01-01 16:00:21 +00:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Missing test files
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-01-01 15:59:56 +00:00
|
|
|
meta = {
|
|
|
|
description = "Python bindings for the reference Brotli encoder/decoder";
|
|
|
|
homepage = "https://github.com/python-hyper/brotlipy/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2020-08-25 03:07:09 +01:00
|
|
|
}
|