File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed
pkgs/development/python-modules/more-properties Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
33 buildPythonPackage ,
4- pythonOlder ,
4+ pythonAtLeast ,
55 fetchFromGitHub ,
6+ setuptools ,
67 pytestCheckHook ,
78} :
89
910buildPythonPackage rec {
1011 pname = "more-properties" ;
1112 version = "1.1.1" ;
13+ pyproject = true ;
1214
13- # upstream requires >= 3.6 but only 3.7 includes dataclasses
14- disabled = pythonOlder "3.7" ;
15-
16- format = "setuptools" ;
15+ # All tests are failing with:
16+ # AssertionError: None != 'The type of the None singleton.'
17+ disabled = pythonAtLeast "3.13" ;
1718
1819 src = fetchFromGitHub {
1920 owner = "madman-bob" ;
2021 repo = "python-more-properties" ;
21- rev = version ;
22+ tag = version ;
2223 hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE=" ;
2324 } ;
2425
2526 postPatch = ''
2627 mv pypi_upload/setup.py .
2728 substituteInPlace setup.py \
28- --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
29-
30- # dataclasses is included in Python 3.7
31- substituteInPlace requirements.txt \
32- --replace dataclasses ""
29+ --replace-fail "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
3330 '' ;
3431
32+ build-system = [
33+ setuptools
34+ ] ;
35+
36+ pythonRemoveDeps = [
37+ # dataclasses is included in Python since 3.7
38+ "dataclasses"
39+ ] ;
40+
3541 nativeCheckInputs = [ pytestCheckHook ] ;
3642
3743 pythonImportsCheck = [ "more_properties" ] ;
You can’t perform that action at this time.
0 commit comments