-
Notifications
You must be signed in to change notification settings - Fork 164
/
shell.nix
56 lines (47 loc) · 1.14 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
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
# Add our own BayesPy package to Python path
PYTHONPATH = toString ./.;
buildInputs = [
pandoc
# Full LaTeX needed for anyfontsize.sty
# Medium LaTeX would be sufficient for dvisvgm
texlive.combined.scheme-full
(
python3.withPackages (
ps: with ps; let
truncnorm = buildPythonPackage rec {
pname = "truncnorm";
version = "0.0.2";
src = fetchPypi {
pname = pname;
version = version;
sha256 = "sha256-D6spzLLfdmUaE2+J+A6Va7CZzeb9prJr3nb5SNAWmOg=";
};
doCheck = false;
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ scipy numpy ];
};
in [
# Core
numpy
scipy
h5py
matplotlib
truncnorm
# Dev
ipython
nose
# Docs
sphinx
sphinxcontrib-tikz
sphinxcontrib-bayesnet
sphinxcontrib-bibtex
sphinxcontrib-katex
nbsphinx
]
)
)
];
}