python3Packages.oddsprout: 0.1.1 -> 0.1.2

Also adds `oddsprout` as an application.
This commit is contained in:
MithicSpirit 2025-01-26 17:34:06 -05:00
parent 91a3305359
commit b50e89f410
No known key found for this signature in database
GPG Key ID: 0EA043551EBD3C2E
2 changed files with 10 additions and 17 deletions

View File

@ -0,0 +1,5 @@
{
python3Packages,
}:
python3Packages.toPythonApplication python3Packages.oddsprout

View File

@ -2,8 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
poetry-core,
hatchling,
pytestCheckHook,
pythonOlder,
dahlia,
@ -12,7 +11,7 @@
buildPythonPackage rec {
pname = "oddsprout";
version = "0.1.1";
version = "0.1.2";
pyproject = true;
disabled = pythonOlder "3.9";
@ -21,28 +20,16 @@ buildPythonPackage rec {
owner = "trag1c";
repo = "oddsprout";
tag = "v${version}";
hash = "sha256-BOUYq4yny3ScgzCzx2cpeK4e7nxxwTj8mJ42nr59mFA=";
hash = "sha256-RfAU3/Je3aC8JjQ51DqRCSAIfW2tQmQPP6G0/bfa1ZE=";
};
build-system = [ poetry-core ];
build-system = [ hatchling ];
dependencies = [
dahlia
ixia
];
patches = [
# https://github.com/trag1c/oddsprout/pull/8
(fetchpatch2 {
name = "allow-periods-in-path.patch";
url = "https://github.com/trag1c/oddsprout/commit/59713a797e7748d48f59f92397981c93a81f2c28.patch";
hash = "sha256-GAIQQi5s4D6KbTSgmP2hlBizLATxtJ/hzpWqPX4O0U4=";
})
];
# 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" ];
@ -56,5 +43,6 @@ buildPythonPackage rec {
itepastra
sigmanificient
];
mainProgram = "oddsprout";
};
}