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 000000000000..4e7f9ff84884 --- /dev/null +++ b/pkgs/development/python-modules/python_docs_theme/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, fetchFromGitHub, sphinx }: + +buildPythonPackage rec { + pname = "python_docs_theme"; + version = "2023.3.1"; + format = "flit"; + + src = fetchFromGitHub { + owner = "python"; + repo = "python-docs-theme"; + rev = version; + sha256 = "sha256-WyO5Xc67k5ExB4eCFd17sZCBMaV5djle9BAM0tn5CPc="; + }; + + propagatedBuildInputs = [ sphinx ]; + + pythonImportsCheck = [ "python_docs_theme" ]; + + meta = with lib; { + homepage = "https://github.com/python/python-docs-theme"; + description = "Sphinx theme for CPython project"; + license = licenses.psfl; + maintainers = with maintainers; [ kaction ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9f21f623872f..77cc4ad2c095 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7233,6 +7233,8 @@ self: super: with self; { pallets-sphinx-themes = callPackage ../development/python-modules/pallets-sphinx-themes { }; + python_docs_theme = callPackage ../development/python-modules/python_docs_theme { }; + pamela = callPackage ../development/python-modules/pamela { }; pamqp = callPackage ../development/python-modules/pamqp { };