File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
pkgs/development/python-modules/jsonable Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 buildPythonPackage ,
44 fetchFromGitHub ,
5- nose ,
65 pytestCheckHook ,
6+ fetchpatch2 ,
7+ setuptools ,
78} :
89
910buildPythonPackage 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}
You can’t perform that action at this time.
0 commit comments