Merge pull request #309813 from GaetanLepage/pettingzoo

python311Packages.pettingzoo: init at 1.24.3

authored by Pol Dellaiera and committed by GitHub 56a37107 444d9cf8

+187
+135
pkgs/development/python-modules/pettingzoo/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , setuptools 6 + , wheel 7 + , gymnasium 8 + , numpy 9 + , chess 10 + , pillow 11 + , pybox2d 12 + , pygame 13 + , pymunk 14 + , rlcard 15 + , scipy 16 + , pre-commit 17 + , pynput 18 + , pytest 19 + , pytest-cov 20 + , pytest-markdown-docs 21 + , pytest-xdist 22 + , pytestCheckHook 23 + , stdenv 24 + }: 25 + 26 + buildPythonPackage rec { 27 + pname = "pettingzoo"; 28 + version = "1.24.3"; 29 + pyproject = true; 30 + 31 + disabled = pythonOlder "3.8"; 32 + 33 + src = fetchFromGitHub { 34 + owner = "Farama-Foundation"; 35 + repo = "PettingZoo"; 36 + rev = "refs/tags/${version}"; 37 + hash = "sha256-TVM4MrA4W6AIWEdBIecI85ahJAAc21f27OzCxSpOoZU="; 38 + }; 39 + 40 + build-system = [ 41 + setuptools 42 + wheel 43 + ]; 44 + 45 + dependencies = [ 46 + gymnasium 47 + numpy 48 + ]; 49 + 50 + passthru.optional-dependencies = { 51 + all = [ 52 + chess 53 + # multi-agent-ale-py 54 + pillow 55 + pybox2d 56 + pygame 57 + pymunk 58 + rlcard 59 + scipy 60 + # shimmy 61 + ]; 62 + atari = [ 63 + # multi-agent-ale-py 64 + pygame 65 + ]; 66 + butterfly = [ 67 + pygame 68 + pymunk 69 + ]; 70 + classic = [ 71 + chess 72 + pygame 73 + rlcard 74 + # shimmy 75 + ]; 76 + mpe = [ 77 + pygame 78 + ]; 79 + other = [ 80 + pillow 81 + ]; 82 + sisl = [ 83 + pybox2d 84 + pygame 85 + pymunk 86 + scipy 87 + ]; 88 + testing = [ 89 + # autorom 90 + pre-commit 91 + pynput 92 + pytest 93 + pytest-cov 94 + pytest-markdown-docs 95 + pytest-xdist 96 + ]; 97 + }; 98 + 99 + pythonImportsCheck = [ 100 + "pettingzoo" 101 + ]; 102 + 103 + nativeCheckInputs = [ 104 + chess 105 + pygame 106 + pymunk 107 + pytest-markdown-docs 108 + pytest-xdist 109 + pytestCheckHook 110 + rlcard 111 + ]; 112 + 113 + disabledTestPaths = [ 114 + # Require unpackaged multi_agent_ale_py 115 + "test/all_parameter_combs_test.py" 116 + "test/pickle_test.py" 117 + "test/unwrapped_test.py" 118 + ]; 119 + 120 + disabledTests = [ 121 + # ImportError: cannot import name 'pytest_plugins' from 'pettingzoo.classic' 122 + "test_chess" 123 + ] ++ lib.optionals stdenv.isDarwin [ 124 + # Crashes on darwin: `Fatal Python error: Aborted` 125 + "test_multi_episode_parallel_env_wrapper" 126 + ]; 127 + 128 + meta = with lib; { 129 + description = "An API standard for multi-agent reinforcement learning environments, with popular reference environments and related utilities"; 130 + homepage = "https://github.com/Farama-Foundation/PettingZoo"; 131 + changelog = "https://github.com/Farama-Foundation/PettingZoo/releases/tag/${version}"; 132 + license = licenses.mit; 133 + maintainers = with maintainers; [ GaetanLepage ]; 134 + }; 135 + }
+48
pkgs/development/python-modules/pytest-markdown-docs/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , poetry-core 6 + , markdown-it-py 7 + , pytest 8 + , pytestCheckHook 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "pytest-markdown-docs"; 13 + version = "0.5.1"; 14 + pyproject = true; 15 + 16 + disabled = pythonOlder "3.8"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "modal-com"; 20 + repo = "pytest-markdown-docs"; 21 + rev = "refs/tags/v${version}"; 22 + hash = "sha256-mclN28tfPcoFxswECjbrkeOI51XXSqUXfbvuSHrd7Sw="; 23 + }; 24 + 25 + build-system = [ 26 + poetry-core 27 + ]; 28 + 29 + dependencies = [ 30 + markdown-it-py 31 + pytest 32 + ]; 33 + 34 + pythonImportsCheck = [ 35 + "pytest_markdown_docs" 36 + ]; 37 + 38 + nativeCheckInputs = [ 39 + pytestCheckHook 40 + ]; 41 + 42 + meta = with lib; { 43 + description = "Run pytest on markdown code fence blocks"; 44 + homepage = "https://github.com/modal-com/pytest-markdown-docs"; 45 + license = licenses.mit; 46 + maintainers = with maintainers; [ GaetanLepage ]; 47 + }; 48 + }
+4
pkgs/top-level/python-packages.nix
··· 9582 9582 9583 9583 peco = callPackage ../development/python-modules/peco { }; 9584 9584 9585 + pettingzoo = callPackage ../development/python-modules/pettingzoo { }; 9586 + 9585 9587 peewee = callPackage ../development/python-modules/peewee { }; 9586 9588 9587 9589 peewee-migrate = callPackage ../development/python-modules/peewee-migrate { }; ··· 12119 12121 pytest-localserver = callPackage ../development/python-modules/pytest-localserver { }; 12120 12122 12121 12123 pytest-logdog = callPackage ../development/python-modules/pytest-logdog { }; 12124 + 12125 + pytest-markdown-docs = callPackage ../development/python-modules/pytest-markdown-docs { }; 12122 12126 12123 12127 pytest-md-report = callPackage ../development/python-modules/pytest-md-report { }; 12124 12128