-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
55 lines (51 loc) · 1.15 KB
/
default.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
{
current ? import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz";
sha256 = "1wg61h4gndm3vcprdcg7rc4s1v3jkm5xd7lw8r2f67w502y94gcy";
}) {}
}:
with current;
stdenv.mkDerivation rec {
name = "env" ;
builder = builtins.toFile "builder.sh" ''
source $stdenv/setup; ln-s $env $out
'';
buildInputs = [ python38 git geos proj curl wget
(python38.buildEnv.override {
ignoreCollisions = true;
extraLibs = with python38Packages; [
numpy
numba
ipywidgets
#tensorflow
#keras
scikitlearn
pytorch
docopt
Rtree
scipy
fiona
scikitimage
affine
rasterio
coverage
matplotlib
joblib
tqdm
pillow
pyproj
pip
notebook
boto3
cython
pandas
gdal
click
];
})
];
shellHook = ''
alias pip="PIP_PREFIX='$(pwd)/_build/pip_packages' \pip"
export PYTHONPATH="$(pwd)/_build/pip_packages/lib/python3.8/site-packages:$PYTHONPATH"
unset SOURCE_DATE_EPOCH
'';}