diff options
Diffstat (limited to 'pkgs/development/python-modules/brotlipy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/brotlipy/default.nix | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/brotlipy/default.nix b/pkgs/development/python-modules/brotlipy/default.nix index 4fef96aa5d74..0c8a0ba0e166 100644 --- a/pkgs/development/python-modules/brotlipy/default.nix +++ b/pkgs/development/python-modules/brotlipy/default.nix @@ -1,39 +1,51 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cffi -, enum34 -, construct -, pytest -, hypothesis +{ + lib, + buildPythonPackage, + cffi, + construct, + fetchPypi, + hypothesis, + pytest, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "brotlipy"; version = "0.7.0"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df"; + hash = "sha256-Nt7wuFm+ryGRAVe0wz6zsG2M5FnJQhAvFpiMym6hZN8="; }; - propagatedBuildInputs = [ cffi enum34 construct ]; + build-system = [ setuptools ]; propagatedNativeBuildInputs = [ cffi ]; - nativeCheckInputs = [ pytest hypothesis ]; + dependencies = [ + cffi + construct + ]; - checkPhase = '' - py.test - ''; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; # Missing test files doCheck = false; + pythonImportsCheck = [ "brotli" ]; + meta = { description = "Python bindings for the reference Brotli encoder/decoder"; homepage = "https://github.com/python-hyper/brotlipy/"; license = lib.licenses.mit; + maintainers = [ ]; }; } |