From 632f8c5cc19be6d7ccd975f825d534627d0cbeff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 17 Jul 2024 14:11:36 +0200 Subject: pkgs: fix bcg with Python 3.12 --- pkgs/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'pkgs') diff --git a/pkgs/default.nix b/pkgs/default.nix index 7094b78..ad2236d 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -39,6 +39,28 @@ in { nodejs-slim_20 = callPackageNodejs (prev.path + "/pkgs/development/web/nodejs/v20.nix") {enableNpm = false;}; nodejs_22 = callPackageNodejs (prev.path + "/pkgs/development/web/nodejs/v22.nix") {}; nodejs-slim_22 = callPackageNodejs (prev.path + "/pkgs/development/web/nodejs/v22.nix") {enableNpm = false;}; + pythonPackagesExtensions = + prev.pythonPackagesExtensions + ++ [ + ( + pyfinal: pyprev: { + bcg = pyprev.bcg.overrideAttrs { + patches = + pyprev.bcg.patches + ++ [ + (final.fetchpatch2 { + name = "bcg-fix-import-with-Python-3.12.patch"; + url = "https://github.com/cynerd/bch-gateway/commit/1314c892992d8914802b6c42602c39f6a1418fca.patch"; + hash = "sha256-+vmkqnnkf81umjesTIFgh0mMh2fCCn/yFyQl6ENP9Cc="; + }) + ]; + propagatedBuildInputs = + pyprev.bcg.propagatedBuildInputs + ++ [pyfinal.looseversion]; + }; + } + ) + ]; # Older version of packages flac1_3 = prev.flac.overrideAttrs { -- cgit v1.2.3