diff options
Diffstat (limited to 'pkgs/development/python-modules/python-docs-theme/default.nix')
-rw-r--r-- | pkgs/development/python-modules/python-docs-theme/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-docs-theme/default.nix b/pkgs/development/python-modules/python-docs-theme/default.nix new file mode 100644 index 00000000000..464697c35bf --- /dev/null +++ b/pkgs/development/python-modules/python-docs-theme/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, flit-core +, pythonOlder +, sphinx +}: + +buildPythonPackage rec { + pname = "python-docs-theme"; + version = "2023.9"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "python"; + repo = "python-docs-theme"; + rev = "refs/tags/${version}"; + hash = "sha256-XVwMEfprTNdNnaW38HMCAu4CswdVjBXYtNWBgqXfbno="; + }; + + nativeBuildInputs = [ + flit-core + ]; + + propagatedBuildInputs = [ + sphinx + ]; + + pythonImportsCheck = [ + "python_docs_theme" + ]; + + meta = with lib; { + description = "Sphinx theme for CPython project"; + homepage = "https://github.com/python/python-docs-theme"; + changelog = "https://github.com/python/python-docs-theme/blob/${version}/CHANGELOG.rst"; + license = licenses.psfl; + maintainers = with maintainers; [ kaction ]; + }; +} |