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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
gitUpdater,
# dependencies
attrs,
beautifulsoup4,
defusedxml,
devpi-common,
devpi-server,
docutils,
pygments,
pyramid,
pyramid-chameleon,
readme-renderer,
setuptools,
tomli,
whoosh,
# tests
pytestCheckHook,
pytest-cov-stub,
packaging-legacy,
webtest,
}:
buildPythonPackage (finalAttrs: {
pname = "devpi-web";
version = "5.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "devpi";
repo = "devpi";
tag = "web-${finalAttrs.version}";
hash = "sha256-rAku3oHcmzFNA/MP/64382gCTgqopwjjy4S4HTEFZiY=";
};
sourceRoot = "${finalAttrs.src.name}/web";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools_changelog_shortener"' ""
'';
build-system = [ setuptools ];
dependencies = [
attrs
beautifulsoup4
defusedxml
devpi-common
devpi-server
docutils
pygments
pyramid
pyramid-chameleon
readme-renderer
tomli
whoosh
]
++ readme-renderer.optional-dependencies.md;
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
packaging-legacy
webtest
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# https://github.com/devpi/devpi/issues/1114
"test_dont_index_deleted_mirror"
];
pythonImportsCheck = [ "devpi_web" ];
# devpi uses a monorepo for server, common, client and web
passthru = {
# bulk updater selects wrong tag
skipBulkUpdate = true;
updateScript = gitUpdater {
# devpi uses a monorepo for server, common, client and web
rev-prefix = "web-";
};
};
meta = {
homepage = "https://github.com/devpi/devpi";
description = "Web view for devpi-server";
changelog = "https://github.com/devpi/devpi/blob/${finalAttrs.src.tag}/common/CHANGELOG";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
confus
];
};
})
|