-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
113 lines (92 loc) · 2.9 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#( let
# my_toolz = python38.pkgs.buildPythonPackage rec {
# pname = "toolz";
# version = "0.10.0";
#
# src = python38.pkgs.fetchPypi {
# inherit pname version;
# sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560";
# };
#
# doCheck = false;
#
# meta = {
# homepage = "https://github.com/pytoolz/toolz/";
# description = "List processing tools and functional utilities";
# };
# };
#
# in python38.withPackages (ps: [ps.numpy my_toolz])
with import <nixpkgs> {};
( let
pypkgs = python39.pkgs;
eth-typing = pypkgs.buildPythonPackage rec {
pname = "eth-typing";
version = "2.2.2";
src = pypkgs.fetchPypi {
inherit pname version;
sha256 = "0gvzhwhhk8nl0rgbyqi7amn0fs0iya1lkmbfixkd7wbwva1hzflp";
};
doCheck = false;
# checkInputs = [ pypkgs.cytoolz ];
# propagatedBuildInputs = [ pypkgs.cytoolz ];
meta = {
homepage = "https://github.com/ethereum/eth-typing/";
description = "eth typing";
};
};
eth-hash = pypkgs.buildPythonPackage rec {
pname = "eth-hash";
version = "0.3.2";
src = pypkgs.fetchPypi {
inherit pname version;
sha256 = "0xjskfa1b11gb4pi1i88h5r07waps0czq2jmm551i25dbv6wwh1z";
};
doCheck = false;
# checkInputs = [ pypkgs.cytoolz ];
# propagatedBuildInputs = [ pypkgs.cytoolz ];
meta = {
homepage = "https://github.com/ethereum/eth-hash/";
description = "eth hash";
};
};
eth-utils = pypkgs.buildPythonPackage rec {
pname = "eth-utils";
version = "1.10.0";
src = pypkgs.fetchPypi {
inherit pname version;
sha256 = "1bv19ig3gsl5y3333amdy39m9ja8f5d2cw031cci91wp8qm7d0mz";
};
doCheck = false;
checkInputs = [ pypkgs.cytoolz eth-hash eth-typing ];
propagatedBuildInputs = [ pypkgs.cytoolz eth-hash eth-typing ];
meta = {
homepage = "https://github.com/ethereum/eth-utils/";
description = "eth utils";
};
};
py_ecc = pypkgs.buildPythonPackage rec {
pname = "py_ecc";
version = "5.2.0";
src = pypkgs.fetchPypi {
inherit pname version;
# sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4511";
sha256 = "1fk4xnfg7isvbgql5fnzpsb1mzwm0a2y6c85bvkv5v0k534bvaph";
};
doCheck = false;
checkInputs = [ pypkgs.mypy-extensions eth-utils pypkgs.cached-property ];
propagatedBuildInputs = [ pypkgs.mypy-extensions pypkgs.cytoolz eth-utils pypkgs.cached-property pypkgs.setuptools ];
meta = {
homepage = "https://github.com/ethereum/py_ecc/";
description = "PY ECC library";
};
};
in {
pythonEnv = stdenv.mkDerivation {
name = "python-env";
buildInputs = [
(python39.withPackages (ps: [ps.numpy py_ecc]))
];
};
}
)