blob: 7aaa75e139b9f13d0b0bd7be756aeb9a12a570ff (
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
54
55
56
57
58
59
60
61
62
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
poetry-dynamic-versioning,
# dependencies
docutils,
pygments,
sphinx,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sphinx-prompt";
version = "1.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sbrunner";
repo = "sphinx-prompt";
tag = version;
hash = "sha256-JKCTn2YkdyGLvchMT9C61PxjYxuQFzt3SjCE9JvgtVc=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace-fail 'version = "0.0.0"' 'version = "${version}"'
'';
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
docutils
pygments
sphinx
];
# upstream pins these unnecessarily in their requirements.txt
pythonRelaxDeps = [
"certifi"
"requests"
"urllib3"
"zipp"
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Sphinx extension for creating unselectable prompt";
homepage = "https://github.com/sbrunner/sphinx-prompt";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ kaction ];
};
}
|