Skip to content

Commit 335a118

Browse files
authored
Merge pull request #330777 from pyrox0/denose/jsonable
python312Packages.jsonable: drop nose dependency; modernize
2 parents e813c06 + 8989a70 commit 335a118

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
nose,
65
pytestCheckHook,
6+
fetchpatch2,
7+
setuptools,
78
}:
89

910
buildPythonPackage rec {
1011
pname = "jsonable";
1112
version = "0.3.1";
12-
format = "setuptools";
13+
pyproject = true;
1314

1415
src = fetchFromGitHub {
1516
owner = "halfak";
@@ -18,17 +19,25 @@ buildPythonPackage rec {
1819
hash = "sha256-3FIzG2djSZOPDdoYeKqs3obQjgHrFtyp0sdBwZakkHA=";
1920
};
2021

21-
nativeCheckInputs = [
22-
nose
23-
pytestCheckHook
22+
patches = [
23+
# https://github.com/halfak/python-jsonable/pull/2
24+
(fetchpatch2 {
25+
name = "eq-to-assert.patch";
26+
url = "https://github.com/halfak/python-jsonable/pull/2/commits/335e61bb4926e644aef983f7313793bf506d2463.patch";
27+
hash = "sha256-tCVA0wG+UMyB6oaNf4nbZ2BPWkNumaGPcjP5VJKegBo=";
28+
})
2429
];
2530

31+
build-system = [ setuptools ];
32+
33+
nativeCheckInputs = [ pytestCheckHook ];
34+
2635
pythonImportsCheck = [ "jsonable" ];
2736

28-
meta = with lib; {
37+
meta = {
2938
description = "Provides an abstract base class and utilities for defining trivially JSONable python objects";
3039
homepage = "https://github.com/halfak/python-jsonable";
31-
license = licenses.mit;
32-
maintainers = with maintainers; [ GaetanLepage ];
40+
license = lib.licenses.mit;
41+
maintainers = with lib.maintainers; [ GaetanLepage ];
3342
};
3443
}

0 commit comments

Comments
 (0)