1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 http-sfv,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools-scm,
10 requests,
11}:
12
13buildPythonPackage rec {
14 pname = "http-message-signatures";
15 version = "0.5.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "pyauth";
22 repo = pname;
23 rev = "v${version}";
24 hash = "sha256-Jsivw4lNA/2oqsOGGx8D4gUPftzuys877A9RXyapnSQ=";
25 };
26
27 nativeBuildInputs = [ setuptools-scm ];
28
29 propagatedBuildInputs = [
30 cryptography
31 http-sfv
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 requests
37 ];
38
39 pytestFlagsArray = [ "test/test.py" ];
40
41 pythonImportsCheck = [ "http_message_signatures" ];
42
43 meta = with lib; {
44 description = "Requests authentication module for HTTP Signature";
45 homepage = "https://github.com/pyauth/http-message-signatures";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ fab ];
48 };
49}