nixpkgs/pkgs/development/python-modules/brotlipy/default.nix

36 lines
657 B
Nix
Raw Normal View History

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