3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/yt/default.nix

55 lines
853 B
Nix
Raw Normal View History

2019-07-14 23:35:44 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, matplotlib
, setuptools
, sympy
, numpy
, ipython
, hdf5
, nose
, cython
, python
, isPy3k
2019-07-14 23:35:44 +01:00
}:
buildPythonPackage rec {
pname = "yt";
2020-11-29 14:04:46 +00:00
version = "3.6.1";
disabled = isPy3k;
2019-07-14 23:35:44 +01:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:46 +00:00
sha256 = "be454f9d05dcbe0623328b4df43a1bfd1f0925e516be97399710452931a19bb0";
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";
homepage = "https://github.com/yt-project/yt";
2019-07-14 23:35:44 +01:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}