nixpkgs/pkgs/development/python-modules/pymatgen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.2 KiB
Nix
Raw Normal View History

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