python311Packages.smartypants: avoid rebuild

This keeps 3.12 from 876379f88310 but reverts 3.11 to avoid the rebuilds:
8933 x86_64-darwin
21912 x86_64-linux

+22 -15
+22 -15
pkgs/development/python-modules/smartypants/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , fetchpatch2 5 , isPyPy ··· 9 , pytestCheckHook 10 }: 11 12 - buildPythonPackage rec { 13 version = "2.0.1"; 14 pname = "smartypants"; 15 - pyproject = true; 16 17 disabled = isPyPy; 18 ··· 23 sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"; 24 }; 25 26 - patches = [ 27 - (fetchpatch2 { 28 - # https://github.com/leohemsted/smartypants.py/pull/21 29 - name = "smartypants-3.12-compat.patch"; 30 - url = "https://github.com/leohemsted/smartypants.py/commit/ea46bf36343044a7a61ba3acce4a7f188d986ec5.patch"; 31 - hash = "sha256-9lsiiZKFFKHLy7j3y9ff4gt01szY+2AHpWPAKQgKwZg="; 32 - }) 33 - ]; 34 - 35 - nativeBuildInputs = [ 36 - setuptools 37 - ]; 38 - 39 nativeCheckInputs = [ 40 docutils 41 pygments ··· 53 maintainers = with maintainers; [ dotlambda ]; 54 }; 55 }
··· 1 { lib 2 , buildPythonPackage 3 + , python 4 , fetchFromGitHub 5 , fetchpatch2 6 , isPyPy ··· 10 , pytestCheckHook 11 }: 12 13 + buildPythonPackage (rec { 14 version = "2.0.1"; 15 pname = "smartypants"; 16 17 disabled = isPyPy; 18 ··· 23 sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"; 24 }; 25 26 nativeCheckInputs = [ 27 docutils 28 pygments ··· 40 maintainers = with maintainers; [ dotlambda ]; 41 }; 42 } 43 + # FIXME: just avoiding large rebuild, we'll revert this commit 44 + // (if lib.versionOlder python.version "3.12" then { 45 + format = "setuptools"; 46 + } else { 47 + pyproject = true; 48 + 49 + patches = [ 50 + (fetchpatch2 { 51 + # https://github.com/leohemsted/smartypants.py/pull/21 52 + name = "smartypants-3.12-compat.patch"; 53 + url = "https://github.com/leohemsted/smartypants.py/commit/ea46bf36343044a7a61ba3acce4a7f188d986ec5.patch"; 54 + hash = "sha256-9lsiiZKFFKHLy7j3y9ff4gt01szY+2AHpWPAKQgKwZg="; 55 + }) 56 + ]; 57 + 58 + nativeBuildInputs = [ 59 + setuptools 60 + ]; 61 + }) 62 + )