1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 16:09:19 +03:00
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.

73 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub
, cython
2020-11-29 15:10:39 -08:00
, enum34
, glibcLocales
, matplotlib
, monty
, networkx
, numpy
, palettable
, pandas
, plotly
, pybtex
2020-11-29 15:10:39 -08:00
, pydispatcher
, requests
, ruamel-yaml
2020-11-29 15:10:39 -08:00
, scipy
, six
, spglib
, sympy
, tabulate
, uncertainties
}:
buildPythonPackage rec {
pname = "pymatgen";
version = "2022.2.7";
# sdist doesn't include c files
src = fetchFromGitHub {
owner = "materialsproject";
repo = "pymatgen";
rev= "v${version}";
sha256 = "sha256-92Dxmo1Z9LR2caSOftIf1I6jeZmqDe3SqhhoCofWraw=";
};
nativeBuildInputs = [
cython
glibcLocales
];
2020-06-25 20:39:20 -07:00
propagatedBuildInputs = [
enum34
matplotlib
monty
networkx
numpy
palettable
pandas
plotly
pybtex
2020-06-25 20:39:20 -07:00
pydispatcher
requests
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
];
# 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 ];
};
}