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 1 { lib 2 2 , buildPythonPackage 3 + , python 3 4 , fetchFromGitHub 4 5 , fetchpatch2 5 6 , isPyPy ··· 9 10 , pytestCheckHook 10 11 }: 11 12 12 - buildPythonPackage rec { 13 + buildPythonPackage (rec { 13 14 version = "2.0.1"; 14 15 pname = "smartypants"; 15 - pyproject = true; 16 16 17 17 disabled = isPyPy; 18 18 ··· 23 23 sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"; 24 24 }; 25 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 26 nativeCheckInputs = [ 40 27 docutils 41 28 pygments ··· 53 40 maintainers = with maintainers; [ dotlambda ]; 54 41 }; 55 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 + )