diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix b/nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix index 225a8f149e47..7a27055aba2a 100644 --- a/nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix +++ b/nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix @@ -1,27 +1,40 @@ { lib , buildPythonPackage , fetchFromGitHub +, cryptography , requests -, python +, pytestCheckHook }: buildPythonPackage rec { pname = "requests-http-signature"; - version = "0.1.0"; + version = "0.2.0"; # .pem files for tests aren't present on PyPI src = fetchFromGitHub { owner = "pyauth"; repo = pname; rev = "v${version}"; - sha256 = "0y96wsbci296m1rcxx0ybx8r44rdvyb59p1jl27p7rgz7isr3kx1"; + sha256 = "1jsplqrxadjsc86f0kb6dgpblgwplxrpi0ql1a714w8pbbz4z3h7"; }; - propagatedBuildInputs = [ requests ]; + propagatedBuildInputs = [ + cryptography + requests + ]; - checkPhase = '' - ${python.interpreter} test/test.py - ''; + checkInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ "test/test.py" ]; + + disabledTests = [ + # Test require network access + "test_readme_example" + ]; + + pythonImportsCheck = [ "requests_http_signature" ]; meta = with lib; { description = "A Requests auth module for HTTP Signature"; |