blob: d381a2fcb2b1957e37a460d6991823ea875069a7 (
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
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
stups-tokens,
stups-cli-support,
pytestCheckHook,
isPy3k,
}:
buildPythonPackage rec {
pname = "stups-zign";
version = "1.2";
pyproject = true;
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "zign";
rev = version;
sha256 = "1vk6pnprnd5lfx96hc2c1n7kwh99f260r730x4y2h7lamlv82fh4";
};
patches = [
# pytest 5 is currently unsupported. Fetch and apply a pr that resolves this.
(fetchpatch {
url = "https://github.com/zalando-stups/zign/commit/50140720211e547b0e59f7ddb39a732f0cc73ad7.patch";
sha256 = "1zmyvg1z1asaqqsmxvsx0srvxd6gkgavppvg3dblxwhkml01awqk";
})
];
build-system = [ setuptools ];
dependencies = [
stups-tokens
stups-cli-support
];
preCheck = "
export HOME=$TEMPDIR
";
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "OAuth2 token management command line utility";
homepage = "https://github.com/zalando-stups/zign";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.mschuwalow ];
};
}
|