From 9177f704bd01568f975f7ca18e2d2595a3ffe9ca Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Sun, 12 Sep 2021 15:42:03 +0200 Subject: chia: relax all version constraints --- pkgs/applications/blockchains/chia/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'pkgs/applications/blockchains/chia/default.nix') diff --git a/pkgs/applications/blockchains/chia/default.nix b/pkgs/applications/blockchains/chia/default.nix index 4c596be9f4c..4d3c4aabdfb 100644 --- a/pkgs/applications/blockchains/chia/default.nix +++ b/pkgs/applications/blockchains/chia/default.nix @@ -26,6 +26,13 @@ let chia = python3Packages.buildPythonApplication rec { }) ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "==" ">=" + + ln -sf ${cacert}/etc/ssl/certs/ca-bundle.crt mozilla-ca/cacert.pem + ''; + nativeBuildInputs = [ python3Packages.setuptools-scm ]; @@ -75,17 +82,6 @@ let chia = python3Packages.buildPythonApplication rec { "test_using_legacy_keyring" ]; - 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==0.9.7" "clvm>=0.9.7" \ - - ln -sf ${cacert}/etc/ssl/certs/ca-bundle.crt mozilla-ca/cacert.pem - ''; - preCheck = '' export HOME=`mktemp -d` ''; -- cgit 1.4.1