Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 864 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cffi, 5 construct, 6 fetchPypi, 7 hypothesis, 8 pytest, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "brotlipy"; 16 version = "0.7.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-Nt7wuFm+ryGRAVe0wz6zsG2M5FnJQhAvFpiMym6hZN8="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 propagatedNativeBuildInputs = [ cffi ]; 29 30 dependencies = [ 31 cffi 32 construct 33 ]; 34 35 nativeCheckInputs = [ 36 hypothesis 37 pytestCheckHook 38 ]; 39 40 # Missing test files 41 doCheck = false; 42 43 pythonImportsCheck = [ "brotli" ]; 44 45 meta = { 46 description = "Python bindings for the reference Brotli encoder/decoder"; 47 homepage = "https://github.com/python-hyper/brotlipy/"; 48 license = lib.licenses.mit; 49 maintainers = [ ]; 50 }; 51}