python3Packages.pymatgen: 2022.1.9 -> 2022.2.7, fix build

This commit is contained in:
Jonathan Ringer 2022-02-09 22:32:07 -08:00
parent d723d2d7bf
commit 889dfed13c
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,4 +1,5 @@
{ lib, buildPythonPackage, fetchPypi
{ lib, buildPythonPackage, fetchFromGitHub
, cython
, enum34
, glibcLocales
, matplotlib
@ -8,6 +9,7 @@
, palettable
, pandas
, plotly
, pybtex
, pydispatcher
, requests
, ruamel-yaml
@ -21,14 +23,20 @@
buildPythonPackage rec {
pname = "pymatgen";
version = "2022.1.9";
version = "2022.2.7";
src = fetchPypi {
inherit pname version;
sha256 = "89774c0d87a38dc2f5d4d0148091f6aa240b3633121745826de66867e8d8ecc8";
# sdist doesn't include c files
src = fetchFromGitHub {
owner = "materialsproject";
repo = "pymatgen";
rev= "v${version}";
sha256 = "sha256-92Dxmo1Z9LR2caSOftIf1I6jeZmqDe3SqhhoCofWraw=";
};
nativeBuildInputs = [ glibcLocales ];
nativeBuildInputs = [
cython
glibcLocales
];
propagatedBuildInputs = [
enum34
@ -39,6 +47,7 @@ buildPythonPackage rec {
palettable
pandas
plotly
pybtex
pydispatcher
requests
ruamel-yaml