1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonAtLeast,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "gorilla";
13 version = "0.4.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-AFq4hTsDcWKnx3u4JGBMbggYeO4DwJrQHvQXRIVgGdM=";
21 };
22
23 build-system = [ setuptools ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "gorilla" ];
28
29 disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_find_patches_2" ];
30
31 meta = with lib; {
32 description = "Convenient approach to monkey patching";
33 homepage = "https://github.com/christophercrouzet/gorilla";
34 changelog = "https://github.com/christophercrouzet/gorilla/releases/tag/v${version}";
35 license = licenses.mit;
36 maintainers = with maintainers; [ tbenst ];
37 };
38}