-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
64 lines (61 loc) · 1.42 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
56
57
58
59
60
61
62
63
64
{
current ? import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/ae1c8ede09b53007ba9b3c32f926c9c03547ae8b.tar.gz";
sha256 = "1lpphn9dcf8vh8ia38f472i7cqggp3knpfa2jwlc6z5ldbvrw7ki";
}) {}
}:
with current;
stdenv.mkDerivation rec {
name = "env" ;
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [ git hdf4 gcc pybind11 wget libjpeg openjpeg
(python38.buildEnv.override {
ignoreCollisions = true;
extraLibs = with python38Packages; [
numpy
scipy
flake8
matplotlib
boto3
intake
(dask.override { withExtraComplete = true; })
pip
notebook
cython
pandas
wheel
seaborn
gdal
h5py
datashader
netcdf4
shapely
pyproj
lib
env
numba
flask
joblib
geos
scikitlearn
xarray
six
time
pillow
gzip
setuptools
cycler
rasterio
ipython
nbformat
ipywidgets
];
})
];
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
pip install ipyleaflet
jupyter nbextension enable --py ipyleaflet
'';}