Skip to content

Commit b50e89f

Browse files
committed
python3Packages.oddsprout: 0.1.1 -> 0.1.2
Also adds `oddsprout` as an application.
1 parent 91a3305 commit b50e89f

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
python3Packages,
3+
}:
4+
5+
python3Packages.toPythonApplication python3Packages.oddsprout

pkgs/development/python-modules/oddsprout/default.nix

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
fetchpatch2,
6-
poetry-core,
5+
hatchling,
76
pytestCheckHook,
87
pythonOlder,
98
dahlia,
@@ -12,7 +11,7 @@
1211

1312
buildPythonPackage rec {
1413
pname = "oddsprout";
15-
version = "0.1.1";
14+
version = "0.1.2";
1615
pyproject = true;
1716

1817
disabled = pythonOlder "3.9";
@@ -21,28 +20,16 @@ buildPythonPackage rec {
2120
owner = "trag1c";
2221
repo = "oddsprout";
2322
tag = "v${version}";
24-
hash = "sha256-BOUYq4yny3ScgzCzx2cpeK4e7nxxwTj8mJ42nr59mFA=";
23+
hash = "sha256-RfAU3/Je3aC8JjQ51DqRCSAIfW2tQmQPP6G0/bfa1ZE=";
2524
};
2625

27-
build-system = [ poetry-core ];
26+
build-system = [ hatchling ];
2827

2928
dependencies = [
3029
dahlia
3130
ixia
3231
];
3332

34-
patches = [
35-
# https://github.com/trag1c/oddsprout/pull/8
36-
(fetchpatch2 {
37-
name = "allow-periods-in-path.patch";
38-
url = "https://github.com/trag1c/oddsprout/commit/59713a797e7748d48f59f92397981c93a81f2c28.patch";
39-
hash = "sha256-GAIQQi5s4D6KbTSgmP2hlBizLATxtJ/hzpWqPX4O0U4=";
40-
})
41-
];
42-
43-
# has one test `test_main_recursion_error`
44-
# that has a very low (~1%) but nonzero chance to fail,
45-
# this is known upstream (https://github.com/trag1c/oddsprout/issues/5)
4633
nativeCheckInputs = [ pytestCheckHook ];
4734

4835
pythonImportsCheck = [ "oddsprout" ];
@@ -56,5 +43,6 @@ buildPythonPackage rec {
5643
itepastra
5744
sigmanificient
5845
];
46+
mainProgram = "oddsprout";
5947
};
6048
}

0 commit comments

Comments
 (0)