Merge pull request #122686 from fabaff/fix-requests-http-signature
python3Packages.requests-http-signature: 0.1.0 -> 0.2.0
This commit is contained in:
commit
7973682137
|
@ -1,28 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, cryptography
|
||||
, python
|
||||
, requests
|
||||
, 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 cryptography ];
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue