blob: b7c6c73820a251d23fde9c3d5ff8eded0f8e566d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
webob,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "hawkauthlib";
version = "0.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "hawkauthlib";
rev = "refs/tags/v${version}";
hash = "sha256-UW++gLQX1U4jFwccL+O5wl2r/d2OZ5Ug0wcnSfqtIVc=";
};
postPatch = ''
substituteInPlace hawkauthlib/tests/* \
--replace-warn 'assertEquals' 'assertEqual'
'';
build-system = [ setuptools ];
dependencies = [
requests
webob
];
pythonImportsCheck = [ "hawkauthlib" ];
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
homepage = "https://github.com/mozilla-services/hawkauthlib";
description = "Hawk Access Authentication protocol";
license = licenses.mpl20;
maintainers = with maintainers; [ ];
};
}
|