mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
ledger-autosync: fix build with Python 3.12
This commit is contained in:
parent
33c8b1a720
commit
9ec78f5bc1
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
, fetchpatch2
|
||||
, ledger
|
||||
, hledger
|
||||
, useLedger ? true
|
||||
@ -20,6 +21,19 @@ python3Packages.buildPythonApplication rec {
|
||||
sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch2 {
|
||||
name = "drop-distutils.patch";
|
||||
url = "https://github.com/egh/ledger-autosync/commit/b7a2a185b9c3b17764322dcc80153410d12e6a5f.patch";
|
||||
hash = "sha256-qKuTpsNFuS00yRAH4VGpMA249ml0BGZsGVb75WrBWEo=";
|
||||
})
|
||||
(fetchpatch2 {
|
||||
name = "drop-imp.patch";
|
||||
url = "https://github.com/egh/ledger-autosync/commit/453d92ad279e6c90fadf835d1c39189a1179eb17.patch";
|
||||
hash = "sha256-mncMvdWldAnVDy1+bJ+oyDOrUb14v9LrBRz/CYrtYbc=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
poetry-core
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user