nixpkgs/pkgs/development/python-modules/gorilla/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
871 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
2024-04-05 21:43:10 +01:00
}:
2019-11-25 02:43:23 +00:00
buildPythonPackage rec {
pname = "gorilla";
version = "0.4.0";
2024-04-05 21:43:10 +01:00
pyproject = true;
2019-11-25 02:43:23 +00:00
disabled = pythonOlder "3.7";
2019-11-25 02:43:23 +00:00
src = fetchPypi {
inherit pname version;
2024-04-05 21:43:10 +01:00
hash = "sha256-AFq4hTsDcWKnx3u4JGBMbggYeO4DwJrQHvQXRIVgGdM=";
2019-11-25 02:43:23 +00:00
};
build-system = [ setuptools ];
2024-04-05 21:43:10 +01:00
nativeCheckInputs = [ pytestCheckHook ];
2024-04-05 21:43:10 +01:00
pythonImportsCheck = [ "gorilla" ];
2024-04-05 21:43:10 +01:00
disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_find_patches_2" ];
meta = with lib; {
2019-11-25 02:43:23 +00:00
description = "Convenient approach to monkey patching";
2024-04-05 21:43:10 +01:00
homepage = "https://github.com/christophercrouzet/gorilla";
changelog = "https://github.com/christophercrouzet/gorilla/releases/tag/v${version}";
2019-11-25 02:43:23 +00:00
license = licenses.mit;
maintainers = with maintainers; [ tbenst ];
};
}