diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 17ec4577d6e7..41007014b7aa 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12562,6 +12562,11 @@ githubId = 277474; keys = [ { fingerprint = "F1F1 3395 8E8E 9CC4 D9FC 9647 1931 9CD8 416A 642B"; } ]; }; + jfr = { + name = "Joseph Fox-Rabinovitz"; + github = " joe-saronic"; + githubId = 156837150; + }; jfroche = { name = "Jean-François Roche"; email = "jfroche@pyxel.be"; diff --git a/pkgs/development/python-modules/pytest-assume/default.nix b/pkgs/development/python-modules/pytest-assume/default.nix new file mode 100644 index 000000000000..4c344372f157 --- /dev/null +++ b/pkgs/development/python-modules/pytest-assume/default.nix @@ -0,0 +1,40 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytest, + pytestCheckHook, + six, +}: + +buildPythonPackage (finalAttrs: { + pname = "pytest-assume"; + version = "2.4.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "astraw38"; + repo = "pytest-assume"; + tag = "v${finalAttrs.version}"; + hash = "sha256-QIwETun/n8SnBzK/axWiVTcuWiJ0ph3+2pQYVRMmVWI="; + }; + + build-system = [ setuptools ]; + + buildInputs = [ pytest ]; + + dependencies = [ six ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "pytest_assume" ]; + + meta = { + description = "Pytest plugin that allows multiple failures per test"; + homepage = "https://github.com/astraw38/pytest-assume"; + changelog = "https://github.com/astraw38/pytest-assume/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jfr ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0f03e26a4ce5..5d6657fb3a3b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15271,6 +15271,8 @@ self: super: with self; { pytest-arraydiff = callPackage ../development/python-modules/pytest-arraydiff { }; + pytest-assume = callPackage ../development/python-modules/pytest-assume { }; + pytest-astropy = callPackage ../development/python-modules/pytest-astropy { }; pytest-astropy-header = callPackage ../development/python-modules/pytest-astropy-header { };