Unverified Commit 6b76ad07 authored by natsukium's avatar natsukium
Browse files

python311Packages.guzzle-sphinx-theme: refactor

parent ef9376fc
Loading
Loading
Loading
Loading
+17 −3
Original line number Diff line number Diff line
{ 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;
  };
}