From 44998179ba36f479ab499fcd53a16f49749008d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Apr 2024 22:43:10 +0200 Subject: [PATCH] python312Packages.gorilla: refactor --- .../python-modules/gorilla/default.nix | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/gorilla/default.nix b/pkgs/development/python-modules/gorilla/default.nix index 3603e1961e1d..c7d884bd397d 100644 --- a/pkgs/development/python-modules/gorilla/default.nix +++ b/pkgs/development/python-modules/gorilla/default.nix @@ -1,18 +1,36 @@ -{ lib, buildPythonPackage, fetchPypi}: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, setuptools +}: buildPythonPackage rec { pname = "gorilla"; version = "0.4.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "005ab8853b037162a7c77bb824604c6e081878ee03c09ad01ef41744856019d3"; + hash = "sha256-AFq4hTsDcWKnx3u4JGBMbggYeO4DwJrQHvQXRIVgGdM="; }; + build-system = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "gorilla" + ]; + meta = with lib; { - homepage = "https://github.com/christophercrouzet/gorilla"; description = "Convenient approach to monkey patching"; + homepage = "https://github.com/christophercrouzet/gorilla"; + changelog = "https://github.com/christophercrouzet/gorilla/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ tbenst ]; };