about summary refs log tree commit diff
path: root/pkgs/applications/blockchains
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2023-01-14 16:26:39 +0000
committerGitHub <noreply@github.com>2023-01-14 16:26:39 +0000
commitb974cf6522a8a94228a6019a12a4aa2fce239d62 (patch)
treee6f67e19bc6dd206fe323eae00ab4f797525401c /pkgs/applications/blockchains
parent3a9b551601446eb20f028b9ae3397709666d9387 (diff)
parent306d708b8bff93872077751f84133ff11a928a62 (diff)
Merge pull request #209180 from NixOS/staging-next
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r--pkgs/applications/blockchains/chia/default.nix10
-rw-r--r--pkgs/applications/blockchains/chia/dont_lock_in_store.patch21
2 files changed, 3 insertions, 28 deletions
diff --git a/pkgs/applications/blockchains/chia/default.nix b/pkgs/applications/blockchains/chia/default.nix
index 33ce321cb4c6d..bae0fc7988d9a 100644
--- a/pkgs/applications/blockchains/chia/default.nix
+++ b/pkgs/applications/blockchains/chia/default.nix
@@ -6,21 +6,16 @@
 
 let chia = python3Packages.buildPythonApplication rec {
   pname = "chia";
-  version = "1.6.0";
+  version = "1.6.2";
 
   src = fetchFromGitHub {
     owner = "Chia-Network";
     repo = "chia-blockchain";
     rev = version;
     fetchSubmodules = true;
-    hash = "sha256-TNaHPvN19fkRqkQHtqdeEDwhqbntcVhxXhY8TNIScEg=";
+    hash = "sha256-BgUgTYpjFsKisfFni8TzSYQ8+S3P+7m78DuyjWF5xh8=";
   };
 
-  patches = [
-    # chia tries to put lock files in the python modules directory
-    ./dont_lock_in_store.patch
-  ];
-
   postPatch = ''
     substituteInPlace setup.py \
       --replace "==" ">="
@@ -59,6 +54,7 @@ let chia = python3Packages.buildPythonApplication rec {
     fasteners
     filelock
     keyrings-cryptfile
+    psutil
     pyyaml
     setproctitle
     setuptools # needs pkg_resources at runtime
diff --git a/pkgs/applications/blockchains/chia/dont_lock_in_store.patch b/pkgs/applications/blockchains/chia/dont_lock_in_store.patch
deleted file mode 100644
index f923b11801a10..0000000000000
--- a/pkgs/applications/blockchains/chia/dont_lock_in_store.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- a/chia/wallet/puzzles/load_clvm.py
-+++ b/chia/wallet/puzzles/load_clvm.py
-@@ -82,18 +82,6 @@ def load_serialized_clvm(clvm_filename, package_or_requirement=__name__) -> Seri
-     """
-     hex_filename = f"{clvm_filename}.hex"
- 
--    try:
--        if pkg_resources.resource_exists(package_or_requirement, clvm_filename):
--            # Establish whether the size is zero on entry
--            full_path = pathlib.Path(pkg_resources.resource_filename(package_or_requirement, clvm_filename))
--            output = full_path.parent / hex_filename
--            compile_clvm(full_path, output, search_paths=[full_path.parent])
--
--    except NotImplementedError:
--        # pyinstaller doesn't support `pkg_resources.resource_exists`
--        # so we just fall through to loading the hex clvm
--        pass
--
-     clvm_hex = pkg_resources.resource_string(package_or_requirement, hex_filename).decode("utf8")
-     assert len(clvm_hex.strip()) != 0
-     clvm_blob = bytes.fromhex(clvm_hex)