python310Packages.http-message-signatures: init at 0.4.3

This commit is contained in:
Fabian Affolter 2022-04-27 13:32:19 +02:00
parent e7b60a8b81
commit a98e1af265
2 changed files with 58 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -3887,6 +3887,8 @@ in {
httplib2 = callPackage ../development/python-modules/httplib2 { };
http-message-signatures = callPackage ../development/python-modules/http-message-signatures { };
http-parser = callPackage ../development/python-modules/http-parser { };
http-sfv = callPackage ../development/python-modules/http-sfv { };