From cdcbe30a7434b342cd48a1fcaf5d815445fc140d Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Thu, 7 Nov 2024 21:14:53 +0100 Subject: [PATCH 1/2] python312Packages.oddsprout: 0.1.0 -> 0.1.1 (cherry picked from commit a4a636d1237f3e9e9ee263917da950b757972836) --- .../python-modules/oddsprout/default.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/oddsprout/default.nix b/pkgs/development/python-modules/oddsprout/default.nix index 9aca78d9e063..00ae30c7eba0 100644 --- a/pkgs/development/python-modules/oddsprout/default.nix +++ b/pkgs/development/python-modules/oddsprout/default.nix @@ -3,24 +3,37 @@ buildPythonPackage, fetchFromGitHub, poetry-core, + pytestCheckHook, + pythonOlder, dahlia, - ixia + ixia, }: buildPythonPackage rec { pname = "oddsprout"; - version = "0.1.0"; + version = "0.1.1"; pyproject = true; + disabled = pythonOlder "3.9"; + src = fetchFromGitHub { owner = "trag1c"; repo = "oddsprout"; rev = "refs/tags/v${version}"; - hash = "sha256-k5/mBoW4PxGUbkwaZyHgS3MGI4533V/nNoGqEg+VXpM="; + hash = "sha256-BOUYq4yny3ScgzCzx2cpeK4e7nxxwTj8mJ42nr59mFA="; }; build-system = [ poetry-core ]; - dependencies = [ dahlia ixia ]; + + dependencies = [ + dahlia + ixia + ]; + + # has one test `test_main_recursion_error` + # that has a very low (~1%) but nonzero chance to fail, + # this is known upstream (https://github.com/trag1c/oddsprout/issues/5) + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "oddsprout" ]; From 6fe7bb6152ac9db9413a803be4ab96933e32a024 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sat, 9 Nov 2024 00:17:13 +0100 Subject: [PATCH 2/2] python312Packages.oddsprout: add itepastra to maintainer (cherry picked from commit 61098d62851ffd0155dfac173802c269feac75ec) --- pkgs/development/python-modules/oddsprout/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/oddsprout/default.nix b/pkgs/development/python-modules/oddsprout/default.nix index 00ae30c7eba0..4f948f8dec59 100644 --- a/pkgs/development/python-modules/oddsprout/default.nix +++ b/pkgs/development/python-modules/oddsprout/default.nix @@ -42,6 +42,9 @@ buildPythonPackage rec { description = "Generate random JSON with no schemas involved"; license = licenses.mit; homepage = "https://trag1c.github.io/oddsprout"; - maintainers = with maintainers; [ sigmanificient ]; + maintainers = with maintainers; [ + itepastra + sigmanificient + ]; }; }