blob: 816afc262f906255a2f63244b2e41ef2070063a3 (
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
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, jsonschema
, poetry-core
, pymacaroons
, pytest-mock
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "pypitoken";
version = "7.0.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ewjoachim";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-CjSENkk1VlzrCngwFoJuq31Iai60qTJXBGMoV5QkSsE=";
};
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pymacaroons
jsonschema
typing-extensions
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"pypitoken"
];
meta = with lib; {
description = "Library for generating and manipulating PyPI tokens";
homepage = "https://pypitoken.readthedocs.io/";
changelog = "https://github.com/ewjoachim/pypitoken/releases/tag/6.0.3${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|