From deae8944a4d8082b15297d4f3d2a9670f429b128 Mon Sep 17 00:00:00 2001 From: Joseph Fox-Rabinovitz Date: Sun, 1 Feb 2026 20:33:25 -0600 Subject: [PATCH 1/3] maintainers: add jfr --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) 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"; From 71be476e29adc41e3a555915f81bd7b51f973cd6 Mon Sep 17 00:00:00 2001 From: Joseph Fox-Rabinovitz Date: Sun, 1 Feb 2026 19:32:26 -0600 Subject: [PATCH 2/3] python313Packages.pytest-assume: init at 2.4.3 --- .../python-modules/pytest-assume/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-assume/default.nix 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..511302b28483 --- /dev/null +++ b/pkgs/development/python-modules/pytest-assume/default.nix @@ -0,0 +1,40 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytest, + pytestCheckHook, + six, +}: + +buildPythonPackage rec { + pname = "pytest-assume"; + version = "2.4.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "astraw38"; + repo = "pytest-assume"; + tag = "v${version}"; + sha256 = "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/${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 aff8d37062ab..5c63599d4223 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 { }; From 65f2cd8984a9494a48bc31e420e3b09e88ca7029 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 May 2026 11:09:30 +0200 Subject: [PATCH 3/3] python3Packages.pytest-assume: migrate to finalAttrs --- .../python-modules/pytest-assume/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pytest-assume/default.nix b/pkgs/development/python-modules/pytest-assume/default.nix index 511302b28483..4c344372f157 100644 --- a/pkgs/development/python-modules/pytest-assume/default.nix +++ b/pkgs/development/python-modules/pytest-assume/default.nix @@ -8,7 +8,7 @@ six, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytest-assume"; version = "2.4.3"; pyproject = true; @@ -16,8 +16,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "astraw38"; repo = "pytest-assume"; - tag = "v${version}"; - sha256 = "sha256-QIwETun/n8SnBzK/axWiVTcuWiJ0ph3+2pQYVRMmVWI="; + tag = "v${finalAttrs.version}"; + hash = "sha256-QIwETun/n8SnBzK/axWiVTcuWiJ0ph3+2pQYVRMmVWI="; }; build-system = [ setuptools ]; @@ -33,8 +33,8 @@ buildPythonPackage rec { 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/${src.tag}"; + changelog = "https://github.com/astraw38/pytest-assume/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jfr ]; }; -} +})