2022-02-09 22:32:07 -08:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, cython
|
2020-11-29 15:10:39 -08:00
|
|
|
, enum34
|
|
|
|
, glibcLocales
|
|
|
|
, matplotlib
|
|
|
|
, monty
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, palettable
|
|
|
|
, pandas
|
|
|
|
, plotly
|
2022-02-09 22:32:07 -08:00
|
|
|
, pybtex
|
2020-11-29 15:10:39 -08:00
|
|
|
, pydispatcher
|
|
|
|
, requests
|
2021-11-01 21:59:40 +01:00
|
|
|
, ruamel-yaml
|
2020-11-29 15:10:39 -08:00
|
|
|
, scipy
|
|
|
|
, six
|
|
|
|
, spglib
|
|
|
|
, sympy
|
|
|
|
, tabulate
|
|
|
|
, uncertainties
|
|
|
|
}:
|
2018-07-11 18:26:31 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymatgen";
|
2022-02-09 22:32:07 -08:00
|
|
|
version = "2022.2.7";
|
2018-07-11 18:26:31 +01:00
|
|
|
|
2022-02-09 22:32:07 -08:00
|
|
|
# sdist doesn't include c files
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "materialsproject";
|
|
|
|
repo = "pymatgen";
|
|
|
|
rev= "v${version}";
|
|
|
|
sha256 = "sha256-92Dxmo1Z9LR2caSOftIf1I6jeZmqDe3SqhhoCofWraw=";
|
2018-07-11 18:26:31 +01:00
|
|
|
};
|
|
|
|
|
2022-02-09 22:32:07 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
glibcLocales
|
|
|
|
];
|
2020-06-25 20:39:20 -07:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
enum34
|
|
|
|
matplotlib
|
|
|
|
monty
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
palettable
|
|
|
|
pandas
|
|
|
|
plotly
|
2022-02-09 22:32:07 -08:00
|
|
|
pybtex
|
2020-06-25 20:39:20 -07:00
|
|
|
pydispatcher
|
|
|
|
requests
|
2021-11-01 21:59:40 +01:00
|
|
|
ruamel-yaml
|
2020-06-25 20:39:20 -07:00
|
|
|
scipy
|
|
|
|
six
|
|
|
|
spglib
|
|
|
|
sympy
|
|
|
|
tabulate
|
2020-11-29 15:10:39 -08:00
|
|
|
uncertainties
|
2020-06-25 20:39:20 -07:00
|
|
|
];
|
2018-09-06 00:04:28 -04:00
|
|
|
|
2018-07-11 18:26:31 +01:00
|
|
|
# No tests in pypi tarball.
|
|
|
|
doCheck = false;
|
2021-02-16 01:27:56 +01:00
|
|
|
pythonImportsCheck = [ "pymatgen" ];
|
2018-07-11 18:26:31 +01:00
|
|
|
|
2021-01-11 08:54:33 +01: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-03-31 21:11:51 -04:00
|
|
|
homepage = "https://pymatgen.org/";
|
2018-07-11 18:26:31 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|