diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-03-22 16:41:59 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-03-22 16:41:59 +0100 |
commit | 46a88117a05c3469af5d99433af140c3de8ca088 (patch) | |
tree | d7f0557756d8f07a3081b3498c05ddc5a8ad429d /nixpkgs/pkgs/development/python-modules/smartypants/default.nix | |
parent | e97457545cea0b2ca421da257c83d8f1ef451d85 (diff) | |
parent | a343533bccc62400e8a9560423486a3b6c11a23b (diff) | |
download | nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.gz nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.bz2 nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.lz nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.xz nixlib-46a88117a05c3469af5d99433af140c3de8ca088.tar.zst nixlib-46a88117a05c3469af5d99433af140c3de8ca088.zip |
Merge commit 'a343533bccc62400e8a9560423486a3b6c11a23b'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/smartypants/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/smartypants/default.nix | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/smartypants/default.nix b/nixpkgs/pkgs/development/python-modules/smartypants/default.nix index 5094287fcfaf..d2ca5f297322 100644 --- a/nixpkgs/pkgs/development/python-modules/smartypants/default.nix +++ b/nixpkgs/pkgs/development/python-modules/smartypants/default.nix @@ -1,6 +1,5 @@ { lib , buildPythonPackage -, python , fetchFromGitHub , fetchpatch2 , isPyPy @@ -10,9 +9,10 @@ , pytestCheckHook }: -buildPythonPackage (rec { +buildPythonPackage rec { version = "2.0.1"; pname = "smartypants"; + pyproject = true; disabled = isPyPy; @@ -23,6 +23,19 @@ buildPythonPackage (rec { sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"; }; + patches = [ + (fetchpatch2 { + # https://github.com/leohemsted/smartypants.py/pull/21 + name = "smartypants-3.12-compat.patch"; + url = "https://github.com/leohemsted/smartypants.py/commit/ea46bf36343044a7a61ba3acce4a7f188d986ec5.patch"; + hash = "sha256-9lsiiZKFFKHLy7j3y9ff4gt01szY+2AHpWPAKQgKwZg="; + }) + ]; + + nativeBuildInputs = [ + setuptools + ]; + nativeCheckInputs = [ docutils pygments @@ -40,23 +53,3 @@ buildPythonPackage (rec { maintainers = with maintainers; [ dotlambda ]; }; } - # FIXME: just avoiding large rebuild, we'll revert this commit - // (if lib.versionOlder python.version "3.12" then { - format = "setuptools"; - } else { - pyproject = true; - - patches = [ - (fetchpatch2 { - # https://github.com/leohemsted/smartypants.py/pull/21 - name = "smartypants-3.12-compat.patch"; - url = "https://github.com/leohemsted/smartypants.py/commit/ea46bf36343044a7a61ba3acce4a7f188d986ec5.patch"; - hash = "sha256-9lsiiZKFFKHLy7j3y9ff4gt01szY+2AHpWPAKQgKwZg="; - }) - ]; - - nativeBuildInputs = [ - setuptools - ]; - }) -) |