From 6b76ad07d5563aa7030559719b6a15ca385cab82 Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 16 Oct 2023 15:04:29 +0900 Subject: [PATCH] python311Packages.guzzle-sphinx-theme: refactor --- .../guzzle-sphinx-theme/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix b/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix index fae7aefac3f7..48d87c8dd7d8 100644 --- a/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix +++ b/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix @@ -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; }; }