lol

python312Packages.more-properties: cleanup & disable on python >= 3.13

+17 -11
+17 -11
pkgs/development/python-modules/more-properties/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - pythonOlder, 4 + pythonAtLeast, 5 5 fetchFromGitHub, 6 + setuptools, 6 7 pytestCheckHook, 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "more-properties"; 11 12 version = "1.1.1"; 12 - 13 - # upstream requires >= 3.6 but only 3.7 includes dataclasses 14 - disabled = pythonOlder "3.7"; 13 + pyproject = true; 15 14 16 - format = "setuptools"; 15 + # All tests are failing with: 16 + # AssertionError: None != 'The type of the None singleton.' 17 + disabled = pythonAtLeast "3.13"; 17 18 18 19 src = fetchFromGitHub { 19 20 owner = "madman-bob"; 20 21 repo = "python-more-properties"; 21 - rev = version; 22 + tag = version; 22 23 hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE="; 23 24 }; 24 25 25 26 postPatch = '' 26 27 mv pypi_upload/setup.py . 27 28 substituteInPlace setup.py \ 28 - --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]" 29 + --replace-fail "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]" 30 + ''; 29 31 30 - # dataclasses is included in Python 3.7 31 - substituteInPlace requirements.txt \ 32 - --replace dataclasses "" 33 - ''; 32 + build-system = [ 33 + setuptools 34 + ]; 35 + 36 + pythonRemoveDeps = [ 37 + # dataclasses is included in Python since 3.7 38 + "dataclasses" 39 + ]; 34 40 35 41 nativeCheckInputs = [ pytestCheckHook ]; 36 42