From 36d2c4f0e29217eff99d58c9cde9df6ba4570cb7 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 21 Sep 2023 10:17:13 +0900 Subject: [PATCH] python311Packages.blspy: fix setuptools import error --- pkgs/development/python-modules/blspy/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/blspy/default.nix b/pkgs/development/python-modules/blspy/default.nix index 41d8c13dc56e..929f1c90b7ce 100644 --- a/pkgs/development/python-modules/blspy/default.nix +++ b/pkgs/development/python-modules/blspy/default.nix @@ -48,6 +48,13 @@ buildPythonPackage rec { }) ]; + # ImportError: cannot import name 'setuptools' from 'setuptools' + # this is resolved in the next release, v2 + postPatch = '' + substituteInPlace setup.py \ + --replace "from setuptools import Extension, setup, setuptools" "from setuptools import Extension, setup" + ''; + nativeBuildInputs = [ cmake setuptools-scm ]; buildInputs = [ boost gmp.static pybind11 ];