depot/third_party/nixpkgs/pkgs/development/python-modules/yt/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

54 lines
853 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, matplotlib
, setuptools
, sympy
, numpy
, ipython
, hdf5
, nose
, cython
, python
, isPy3k
}:
buildPythonPackage rec {
pname = "yt";
version = "3.6.1";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "be454f9d05dcbe0623328b4df43a1bfd1f0925e516be97399710452931a19bb0";
};
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";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}