2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-11-29 23:10:39 +00:00
|
|
|
, enum34
|
|
|
|
, glibcLocales
|
|
|
|
, matplotlib
|
|
|
|
, monty
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, palettable
|
|
|
|
, pandas
|
|
|
|
, plotly
|
|
|
|
, pydispatcher
|
|
|
|
, requests
|
|
|
|
, ruamel_yaml
|
|
|
|
, scipy
|
|
|
|
, six
|
|
|
|
, spglib
|
|
|
|
, sympy
|
|
|
|
, tabulate
|
|
|
|
, uncertainties
|
|
|
|
}:
|
2018-07-11 18:26:31 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymatgen";
|
2021-02-20 09:09:14 +00:00
|
|
|
version = "2020.12.31";
|
2018-07-11 18:26:31 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:14 +00:00
|
|
|
sha256 = "5002490facd47c55d2dae42c35712e061c1f5d881180485c0543a899589856d6";
|
2018-07-11 18:26:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glibcLocales ];
|
2020-06-26 04:39:20 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
enum34
|
|
|
|
matplotlib
|
|
|
|
monty
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
palettable
|
|
|
|
pandas
|
|
|
|
plotly
|
|
|
|
pydispatcher
|
|
|
|
requests
|
|
|
|
ruamel_yaml
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
spglib
|
|
|
|
sympy
|
|
|
|
tabulate
|
2020-11-29 23:10:39 +00:00
|
|
|
uncertainties
|
2020-06-26 04:39:20 +01:00
|
|
|
];
|
2018-09-06 05:04:28 +01:00
|
|
|
|
2018-07-11 18:26:31 +01:00
|
|
|
# No tests in pypi tarball.
|
|
|
|
doCheck = false;
|
2021-02-16 00:27:56 +00:00
|
|
|
pythonImportsCheck = [ "pymatgen" ];
|
2018-07-11 18:26:31 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-11 18:26:31 +01:00
|
|
|
description = "A robust materials analysis code that defines core object representations for structures and molecules";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pymatgen.org/";
|
2018-07-11 18:26:31 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|