mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 05:44:13 +00:00
Merge pull request #312546 from javaes/walrus/patch_distutils_import
python312Packages.walrus: fix python 3.12 build
This commit is contained in:
commit
95a9ecc0bc
@ -5,6 +5,7 @@
|
||||
, pythonOlder
|
||||
, redis
|
||||
, unittestCheckHook
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -21,6 +22,16 @@ buildPythonPackage rec {
|
||||
hash = "sha256-jinYMGSBAY8HTg92qU/iU5vGIrrDr5SeQG0XjsBVfcc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# distutils has been deprecated, this wraps its import inside a try-catch
|
||||
# and fallsback to a fallback import.
|
||||
# Should not be necessary in future versions.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/coleifer/walrus/commit/79e20c89aa4015017ef8a3e0b5c27ca2731dc9b2.patch";
|
||||
hash = "sha256-hCpvki6SV3KYhicjjUMP4VrKMEerMjq2n1BgozXKDO8=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
redis
|
||||
];
|
||||
@ -42,6 +53,8 @@ buildPythonPackage rec {
|
||||
"walrus"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lightweight Python utilities for working with Redis";
|
||||
homepage = "https://github.com/coleifer/walrus";
|
||||
|
Loading…
Reference in New Issue
Block a user