blob: 3cca7ffea2685053b770afb6a20318a833f2cae2 (
plain)
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 = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "hawkauthlib";
tag = "v${version}";
hash = "sha256-dFBGrk7vdZMNTuWvXXWXA4iF/vmiUnK9ds8edN2Yt10=";
};
postPatch = ''
substituteInPlace hawkauthlib/tests/* \
--replace-warn 'assertEquals' 'assertEqual'
'';
build-system = [ setuptools ];
dependencies = [
requests
webob
];
pythonImportsCheck = [ "hawkauthlib" ];
nativeCheckInputs = [ unittestCheckHook ];
meta = {
homepage = "https://github.com/mozilla-services/hawkauthlib";
description = "Hawk Access Authentication protocol";
license = lib.licenses.mpl20;
maintainers = [ ];
};
}
|