Merge pull request #170612 from fabaff/requests-http-signature-bump
python310Packages.requests-http-signature: 0.2.0 -> 0.7.1main
commit
6ee9a9d0be
@ -0,0 +1,56 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, cryptography |
||||
, fetchFromGitHub |
||||
, http-sfv |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, setuptools-scm |
||||
, requests |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "http-message-signatures"; |
||||
version = "0.4.3"; |
||||
format = "setuptools"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "pyauth"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-CMF9p913P04Hx/221ck1e0AoAsP7aXkX2UKp4S1nnU0="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
cryptography |
||||
http-sfv |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
requests |
||||
]; |
||||
|
||||
pytestFlagsArray = [ |
||||
"test/test.py" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"http_message_signatures" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Requests authentication module for HTTP Signature"; |
||||
homepage = "https://github.com/pyauth/http-message-signatures"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,39 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pythonOlder |
||||
, typing-extensions |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "http-sfv"; |
||||
version = "0.9.5"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "mnot"; |
||||
repo = "http_sfv"; |
||||
rev = "http_sfv-${version}"; |
||||
hash = "sha256-hzg5vRX0vNKS/hYLF6n8mLK5qiwP7do4M8YMlBAA66I="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
typing-extensions |
||||
]; |
||||
|
||||
# Tests require external data (https://github.com/httpwg/structured-field-tests) |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"http_sfv" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Module to parse and serialise HTTP structured field values"; |
||||
homepage = "https://github.com/mnot/http_sfv"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue