python3Packages.requests-http-signature: 0.1.0 -> 0.2.0
This commit is contained in:
parent
0755dee0b9
commit
9784a04d66
|
@ -1,28 +1,40 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, requests
|
|
||||||
, cryptography
|
, cryptography
|
||||||
, python
|
, requests
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "requests-http-signature";
|
pname = "requests-http-signature";
|
||||||
version = "0.1.0";
|
version = "0.2.0";
|
||||||
|
|
||||||
# .pem files for tests aren't present on PyPI
|
# .pem files for tests aren't present on PyPI
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pyauth";
|
owner = "pyauth";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0y96wsbci296m1rcxx0ybx8r44rdvyb59p1jl27p7rgz7isr3kx1";
|
sha256 = "1jsplqrxadjsc86f0kb6dgpblgwplxrpi0ql1a714w8pbbz4z3h7";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests cryptography ];
|
propagatedBuildInputs = [
|
||||||
|
cryptography
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
${python.interpreter} test/test.py
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "test/test.py" ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Test require network access
|
||||||
|
"test_readme_example"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "requests_http_signature" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Requests auth module for HTTP Signature";
|
description = "A Requests auth module for HTTP Signature";
|
||||||
|
|
Loading…
Reference in New Issue