Merge pull request #265377 from natsukium/python-docs-theme
python311Packages.python-docs-theme: rename from python_docs_theme
This commit is contained in:
commit
a87a008658
@ -581,7 +581,7 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
|
||||
mv $out/share/doc/* $out/share/doc/python${pythonVersion}-${version}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with pkgsBuildBuild.python3.pkgs; [ sphinxHook python_docs_theme ];
|
||||
nativeBuildInputs = with pkgsBuildBuild.python3.pkgs; [ sphinxHook python-docs-theme ];
|
||||
};
|
||||
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, flit-core, sphinx }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python_docs_theme";
|
||||
version = "2023.9";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python";
|
||||
repo = "python-docs-theme";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-XVwMEfprTNdNnaW38HMCAu4CswdVjBXYtNWBgqXfbno=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -335,6 +335,7 @@ mapAliases ({
|
||||
pytestrunner = pytest-runner; # added 2021-01-04
|
||||
python-forecastio = throw "python-forecastio has been removed, as the Dark Sky service was shut down."; # added 2023-04-05
|
||||
python-igraph = igraph; # added 2021-11-11
|
||||
python_docs_theme = python-docs-theme; # added 2023-11-04
|
||||
python_keyczar = throw "python_keyczar has been removed because it's been archived upstream and deprecated"; # added 2023-05-16
|
||||
python-lz4 = lz4; # added 2018-06-01
|
||||
python_magic = python-magic; # added 2022-05-07
|
||||
|
@ -8667,7 +8667,7 @@ self: super: with self; {
|
||||
|
||||
pallets-sphinx-themes = callPackage ../development/python-modules/pallets-sphinx-themes { };
|
||||
|
||||
python_docs_theme = callPackage ../development/python-modules/python_docs_theme { };
|
||||
python-docs-theme = callPackage ../development/python-modules/python-docs-theme { };
|
||||
|
||||
pamela = callPackage ../development/python-modules/pamela { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user