python311Packages.guzzle-sphinx-theme: refactor

This commit is contained in:
natsukium 2023-10-16 15:04:29 +09:00
parent ef9376fcce
commit 6b76ad07d5
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -1,23 +1,37 @@
{ lib, buildPythonPackage, sphinx, fetchPypi }:
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, sphinx
}:
buildPythonPackage rec {
pname = "guzzle-sphinx-theme";
version = "0.7.11";
pyproject = true;
src = fetchPypi {
pname = "guzzle_sphinx_theme";
inherit version;
sha256 = "1rnkzrrsbnifn3vsb4pfaia3nlvgvw6ndpxp7lzjrh23qcwid34v";
hash = "sha256-m4wWOcNDwCw/PbffZg3fb1M7VFTukqX3sC7apXP+0+Y=";
};
nativeBuildInputs = [
setuptools
];
doCheck = false; # no tests
propagatedBuildInputs = [ sphinx ];
pythonImportsCheck = [
"guzzle_sphinx_theme"
];
meta = with lib; {
description = "Sphinx theme used by Guzzle: http://guzzlephp.org";
homepage = "https://github.com/guzzle/guzzle_sphinx_theme/";
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
platforms = platforms.unix;
};
}