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 ]; };