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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
protobuf3,
pymacaroons,
pynacl,
pyrfc3339,
requests,
setuptools,
httmock,
fixtures,
pytestCheckHook,
mock,
}:
buildPythonPackage rec {
pname = "macaroonbakery";
version = "1.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "go-macaroon-bakery";
repo = "py-macaroon-bakery";
rev = "refs/tags/${version}";
hash = "sha256-NEhr8zkrHceeLbAyuUvc7U6dyQxkpkj0m5LlnBMafA0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
protobuf3
pymacaroons
pynacl
pyrfc3339
requests
];
pythonImportsCheck = [ "macaroonbakery" ];
nativeCheckInputs = [
fixtures
httmock
mock
pytestCheckHook
];
passthru.updateScript = nix-update-script { };
meta = {
description = "A Python library for working with macaroons";
homepage = "https://github.com/go-macaroon-bakery/py-macaroon-bakery";
changelog = "https://github.com/go-macaroon-bakery/py-macaroon-bakery/releases/tag/${version}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ jnsgruk ];
platforms = lib.platforms.linux;
};
}
|