2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2019-01-27 11:56:45 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-04-27 13:34:10 +02:00
|
|
|
, http-message-signatures
|
|
|
|
, http-sfv
|
2021-05-19 11:50:50 +02:00
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
2022-04-27 13:34:10 +02:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
2019-01-27 11:56:45 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-http-signature";
|
2022-04-27 13:34:10 +02:00
|
|
|
version = "0.7.1";
|
2022-01-03 22:16:13 +01:00
|
|
|
format = "setuptools";
|
2019-01-27 11:56:45 +01:00
|
|
|
|
2022-04-27 13:34:10 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2019-01-27 11:56:45 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyauth";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-27 13:34:10 +02:00
|
|
|
hash = "sha256-sW2vYqT/nY27DvEKHdptc3dUpuqKmD7PLMs+Xp+cpeU=";
|
2019-01-27 11:56:45 +01:00
|
|
|
};
|
|
|
|
|
2022-04-27 13:34:10 +02:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-05-19 11:50:50 +02:00
|
|
|
propagatedBuildInputs = [
|
2022-04-27 13:34:10 +02:00
|
|
|
http-message-signatures
|
|
|
|
http-sfv
|
2021-05-19 11:50:50 +02:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-01-03 22:16:13 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"test/test.py"
|
|
|
|
];
|
2021-05-19 11:50:50 +02:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test require network access
|
|
|
|
"test_readme_example"
|
|
|
|
];
|
2019-01-27 11:56:45 +01:00
|
|
|
|
2022-01-03 22:16:13 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"requests_http_signature"
|
|
|
|
];
|
2019-01-27 11:56:45 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-01-03 22:16:13 +01:00
|
|
|
description = "Requests authentication module for HTTP Signature";
|
2019-01-27 11:56:45 +01:00
|
|
|
homepage = "https://github.com/kislyuk/requests-http-signature";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|