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