1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8 poetry-dynamic-versioning,
9
10 # dependencies
11 docutils,
12 pygments,
13 sphinx,
14
15 # tests
16 pytestCheckHook,
17}:
18
19buildPythonPackage rec {
20 pname = "sphinx-prompt";
21 version = "1.10.0";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "sbrunner";
26 repo = "sphinx-prompt";
27 tag = version;
28 hash = "sha256-JKCTn2YkdyGLvchMT9C61PxjYxuQFzt3SjCE9JvgtVc=";
29 };
30
31 build-system = [
32 poetry-core
33 poetry-dynamic-versioning
34 ];
35
36 dependencies = [
37 docutils
38 pygments
39 sphinx
40 ];
41
42 nativeCheckInputs = [ pytestCheckHook ];
43
44 meta = with lib; {
45 description = "Sphinx extension for creating unselectable prompt";
46 homepage = "https://github.com/sbrunner/sphinx-prompt";
47 license = licenses.bsd3;
48 maintainers = with maintainers; [ kaction ];
49 };
50}