diff --git a/pkgs/applications/blockchains/chia/default.nix b/pkgs/applications/blockchains/chia/default.nix index 7b85a242effa..9bcc2ee3b467 100644 --- a/pkgs/applications/blockchains/chia/default.nix +++ b/pkgs/applications/blockchains/chia/default.nix @@ -16,8 +16,6 @@ python3Packages.buildPythonApplication rec { }; patches = [ - # tweak version requirements to what's available in Nixpkgs - ./dependencies.patch # Allow later websockets release, https://github.com/Chia-Network/chia-blockchain/pull/6304 (fetchpatch { name = "later-websockets.patch"; @@ -66,6 +64,16 @@ python3Packages.buildPythonApplication rec { "test_spend_zero_coin" ]; + postPatch = '' + # tweak version requirements to what's available in Nixpkgs + substituteInPlace setup.py \ + --replace "aiohttp==3.7.4" "aiohttp>=3.7.4" \ + --replace "sortedcontainers==2.3.0" "sortedcontainers>=2.3.0" \ + --replace "click==7.1.2" "click>=7.1.2" \ + --replace "clvm_rs==0.1.7" "clvm_rs>=0.1.7" \ + --replace "clvm==0.9.6" "clvm>=0.9.6" \ + ''; + preCheck = '' export HOME=`mktemp -d` ''; diff --git a/pkgs/applications/blockchains/chia/dependencies.patch b/pkgs/applications/blockchains/chia/dependencies.patch deleted file mode 100644 index d9575d1d392c..000000000000 --- a/pkgs/applications/blockchains/chia/dependencies.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index c5cf95db..b783a9e6 100644 ---- a/setup.py -+++ b/setup.py -@@ -8,7 +8,7 @@ dependencies = [ - "clvm==0.9.6", - "clvm_rs==0.1.7", - "clvm_tools==0.4.3", -- "aiohttp==3.7.4", # HTTP server for full node rpc -+ "aiohttp==3.7.4.post0", # HTTP server for full node rpc - "aiosqlite==0.17.0", # asyncio wrapper for sqlite, to store blocks - "bitstring==3.1.7", # Binary data management library - "colorlog==5.0.1", # Adds color to logs