tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
chia-dev-tools: init at 1.1.4
Louis Bettens
3 years ago
23d63549
b974cf65
+78
3 changed files
expand all
collapse all
unified
split
pkgs
applications
blockchains
chia-dev-tools
default.nix
fix-paths.patch
top-level
all-packages.nix
+63
pkgs/applications/blockchains/chia-dev-tools/default.nix
···
1
1
+
{ lib
2
2
+
, fetchFromGitHub
3
3
+
, substituteAll
4
4
+
, python3Packages
5
5
+
, chia
6
6
+
,
7
7
+
}:
8
8
+
python3Packages.buildPythonApplication rec {
9
9
+
pname = "chia-dev-tools";
10
10
+
version = "1.1.4";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "Chia-Network";
14
14
+
repo = pname;
15
15
+
rev = "v${version}";
16
16
+
hash = "sha256-lE7FTSDqVS6AstcxZSMdQwgygMvcvh1fqYVTTSSNZpA=";
17
17
+
};
18
18
+
19
19
+
patches = [
20
20
+
(substituteAll {
21
21
+
src = ./fix-paths.patch;
22
22
+
inherit chia;
23
23
+
})
24
24
+
];
25
25
+
26
26
+
postPatch = ''
27
27
+
substituteInPlace setup.py \
28
28
+
--replace "==" ">="
29
29
+
'';
30
30
+
31
31
+
nativeBuildInputs = [
32
32
+
python3Packages.setuptools-scm
33
33
+
];
34
34
+
35
35
+
# give a hint to setuptools-scm on package version
36
36
+
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
37
37
+
38
38
+
propagatedBuildInputs = with python3Packages; [
39
39
+
(toPythonModule chia)
40
40
+
pytimeparse
41
41
+
];
42
42
+
43
43
+
checkInputs = with python3Packages; [
44
44
+
pytestCheckHook
45
45
+
pytest-asyncio
46
46
+
];
47
47
+
48
48
+
preCheck = ''
49
49
+
export HOME=$(mktemp -d)
50
50
+
'';
51
51
+
postCheck = "unset HOME";
52
52
+
53
53
+
disabledTests = [
54
54
+
"test_spendbundles"
55
55
+
];
56
56
+
57
57
+
meta = with lib; {
58
58
+
homepage = "https://www.chia.net/";
59
59
+
description = "Utility for developing in the Chia ecosystem: Chialisp functions, object inspection, RPC client and more";
60
60
+
license = with licenses; [ asl20 ];
61
61
+
maintainers = teams.chia.members;
62
62
+
};
63
63
+
}
+13
pkgs/applications/blockchains/chia-dev-tools/fix-paths.patch
···
1
1
+
diff --git a/cdv/cmds/sim_utils.py b/cdv/cmds/sim_utils.py
2
2
+
index e59ba8f..20912ff 100644
3
3
+
--- a/cdv/cmds/sim_utils.py
4
4
+
+++ b/cdv/cmds/sim_utils.py
5
5
+
@@ -67,7 +67,7 @@ async def start_async(root_path: Path, group: Any, restart: bool) -> None:
6
6
+
7
7
+
from chia.cmds.start_funcs import async_start
8
8
+
9
9
+
- sys.argv[0] = str(Path(sys.executable).parent / "chia") # this gives the correct path to the chia executable
10
10
+
+ sys.argv[0] = "@chia@/bin/chia" # this gives the correct path to the chia executable
11
11
+
if root_path.exists():
12
12
+
config = load_config(root_path, "config.yaml")
13
13
+
await async_start(root_path, config, group, restart)
+2
pkgs/top-level/all-packages.nix
···
34017
34017
34018
34018
chia = callPackage ../applications/blockchains/chia { };
34019
34019
34020
34020
+
chia-dev-tools = callPackage ../applications/blockchains/chia-dev-tools { };
34021
34021
+
34020
34022
chia-plotter = callPackage ../applications/blockchains/chia-plotter { };
34021
34023
34022
34024
clboss = callPackage ../applications/blockchains/clboss { };