1{ lib
2, buildPythonPackage
3, fetchPypi
4, matplotlib
5, setuptools
6, sympy
7, numpy
8, ipython
9, hdf5
10, nose
11, cython
12, python
13, isPy3k
14}:
15
16buildPythonPackage rec {
17 pname = "yt";
18 version = "4.0.1";
19 disabled = isPy3k;
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "6219cbf971871320a13679a57722c0363e50db5e6d4d64ea9d197461b2a7f70f";
24 };
25
26 buildInputs = [
27 cython
28 ];
29
30 propagatedBuildInputs = [
31 matplotlib
32 setuptools
33 sympy
34 numpy
35 ipython
36 hdf5
37 ];
38
39 checkInputs = [
40 nose
41 ];
42
43 checkPhase = ''
44 cd $out/${python.sitePackages}
45 HOME=$(mktemp -d) nosetests yt
46 '';
47
48 meta = with lib; {
49 description = "An analysis and visualization toolkit for volumetric data";
50 homepage = "https://github.com/yt-project/yt";
51 license = licenses.bsd3;
52 maintainers = [ maintainers.costrouc ];
53 };
54}