2022-04-01 21:37:18 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-02-10 06:32:07 +00:00
|
|
|
, cython
|
2020-11-29 23:10:39 +00:00
|
|
|
, glibcLocales
|
|
|
|
, matplotlib
|
|
|
|
, monty
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, palettable
|
|
|
|
, pandas
|
|
|
|
, plotly
|
2022-02-10 06:32:07 +00:00
|
|
|
, pybtex
|
2020-11-29 23:10:39 +00:00
|
|
|
, pydispatcher
|
2022-04-01 21:37:18 +01:00
|
|
|
, pythonOlder
|
2020-11-29 23:10:39 +00:00
|
|
|
, requests
|
2021-11-01 20:59:40 +00:00
|
|
|
, ruamel-yaml
|
2020-11-29 23:10:39 +00:00
|
|
|
, scipy
|
|
|
|
, spglib
|
|
|
|
, sympy
|
|
|
|
, tabulate
|
|
|
|
, uncertainties
|
|
|
|
}:
|
2018-07-11 18:26:31 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymatgen";
|
2022-04-01 21:37:18 +01:00
|
|
|
version = "2022.3.29";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2018-07-11 18:26:31 +01:00
|
|
|
|
2022-02-10 06:32:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "materialsproject";
|
|
|
|
repo = "pymatgen";
|
|
|
|
rev= "v${version}";
|
2022-04-01 21:37:18 +01:00
|
|
|
hash = "sha256-B2piRWx9TfKlGTPOAAGsq2GxyfHIRBVFpk6dxES0WF0=";
|
2018-07-11 18:26:31 +01:00
|
|
|
};
|
|
|
|
|
2022-02-10 06:32:07 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
glibcLocales
|
|
|
|
];
|
2020-06-26 04:39:20 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
monty
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
palettable
|
|
|
|
pandas
|
|
|
|
plotly
|
2022-02-10 06:32:07 +00:00
|
|
|
pybtex
|
2020-06-26 04:39:20 +01:00
|
|
|
pydispatcher
|
|
|
|
requests
|
2021-11-01 20:59:40 +00:00
|
|
|
ruamel-yaml
|
2020-06-26 04:39:20 +01:00
|
|
|
scipy
|
|
|
|
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
|
|
|
|
2022-04-01 21:37:18 +01:00
|
|
|
# Tests are not detected by pytest
|
2018-07-11 18:26:31 +01:00
|
|
|
doCheck = false;
|
2022-04-01 21:37:18 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|