d419639f9c
GitOrigin-RevId: 6b1057b452c55bb3b463f0d7055bc4ec3fd1f381
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, enum34
|
|
, glibcLocales
|
|
, matplotlib
|
|
, monty
|
|
, networkx
|
|
, numpy
|
|
, palettable
|
|
, pandas
|
|
, plotly
|
|
, pydispatcher
|
|
, requests
|
|
, ruamel_yaml
|
|
, scipy
|
|
, six
|
|
, spglib
|
|
, sympy
|
|
, tabulate
|
|
, uncertainties
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymatgen";
|
|
version = "2020.12.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a7ae7aba87e88965c3e1490f5b9742c95e06150f2fc73da69647a9366dd88018";
|
|
};
|
|
|
|
nativeBuildInputs = [ glibcLocales ];
|
|
|
|
propagatedBuildInputs = [
|
|
enum34
|
|
matplotlib
|
|
monty
|
|
networkx
|
|
numpy
|
|
palettable
|
|
pandas
|
|
plotly
|
|
pydispatcher
|
|
requests
|
|
ruamel_yaml
|
|
scipy
|
|
six
|
|
spglib
|
|
sympy
|
|
tabulate
|
|
uncertainties
|
|
];
|
|
|
|
# No tests in pypi tarball.
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pymatgen" ];
|
|
|
|
meta = with lib; {
|
|
description = "A robust materials analysis code that defines core object representations for structures and molecules";
|
|
homepage = "https://pymatgen.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|