2019-07-14 23:35:44 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, matplotlib
|
|
|
|
, setuptools
|
|
|
|
, sympy
|
|
|
|
, numpy
|
|
|
|
, ipython
|
|
|
|
, hdf5
|
|
|
|
, nose
|
|
|
|
, cython
|
|
|
|
, python
|
2019-10-07 16:20:23 +01:00
|
|
|
, isPy3k
|
2019-07-14 23:35:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yt";
|
2020-06-06 07:47:37 +01:00
|
|
|
version = "3.6.0";
|
2019-10-07 16:20:23 +01:00
|
|
|
disabled = isPy3k;
|
2019-07-14 23:35:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:37 +01:00
|
|
|
sha256 = "effb00536f19fd2bdc18f67dacd5550b82066a6adce5b928f27a01d7505109ec";
|
2019-07-14 23:35:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
setuptools
|
|
|
|
sympy
|
|
|
|
numpy
|
|
|
|
ipython
|
|
|
|
hdf5
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd $out/${python.sitePackages}
|
|
|
|
HOME=$(mktemp -d) nosetests yt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An analysis and visualization toolkit for volumetric data";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/yt-project/yt";
|
2019-07-14 23:35:44 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|