2023-09-10 00:31:29 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, flit-core, sphinx }:
|
2023-05-06 21:20:28 -04:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-11-04 12:34:41 +09:00
|
|
|
pname = "python-docs-theme";
|
2023-10-07 05:11:11 +00:00
|
|
|
version = "2023.9";
|
2023-09-10 00:31:29 +02:00
|
|
|
format = "pyproject";
|
2023-05-06 21:20:28 -04:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python";
|
|
|
|
repo = "python-docs-theme";
|
2023-09-05 21:32:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-07 05:11:11 +00:00
|
|
|
sha256 = "sha256-XVwMEfprTNdNnaW38HMCAu4CswdVjBXYtNWBgqXfbno=";
|
2023-05-06 21:20:28 -04:00
|
|
|
};
|
|
|
|
|
2023-09-10 00:31:29 +02:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
|
2023-05-06 21:20:28 -04:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|