Merge pull request #166860 from fabaff/bump-potentials

python3Packages.potentials: 0.3.2 -> 0.3.3
This commit is contained in:
Fabian Affolter 2022-04-02 22:04:49 +02:00 committed by GitHub
commit 30bdb6a5c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 90 additions and 17 deletions

View file

@ -1,4 +1,5 @@
{ lib { lib
, ase
, buildPythonPackage , buildPythonPackage
, cython , cython
, datamodeldict , datamodeldict
@ -7,17 +8,19 @@
, numericalunits , numericalunits
, numpy , numpy
, pandas , pandas
, phonopy
, potentials , potentials
, pymatgen
, pytest , pytest
, pythonOlder , pythonOlder
, requests
, scipy , scipy
, toolz , toolz
, xmltodict , xmltodict
, python
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "1.4.3"; version = "1.4.4";
pname = "atomman"; pname = "atomman";
format = "setuptools"; format = "setuptools";
@ -27,7 +30,7 @@ buildPythonPackage rec {
owner = "usnistgov"; owner = "usnistgov";
repo = "atomman"; repo = "atomman";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-is47O59Pjrh9tPC1Y2+DVVcHbxmcjUOFOVGnNHuURoM="; hash = "sha256-iLAB0KMtrTCyGpx+81QfHDPVDhq8OA6CDL/ipVRpyo0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -38,19 +41,24 @@ buildPythonPackage rec {
numpy numpy
pandas pandas
potentials potentials
requests
scipy scipy
toolz toolz
xmltodict xmltodict
]; ];
checkInputs = [ checkInputs = [
ase
phonopy
pymatgen
pytest pytest
]; ];
checkPhase = '' checkPhase = ''
# pytestCheckHook doesn't work # pytestCheckHook doesn't work
py.test tests -k "not test_rootdir and not test_version \ pytest tests -k "not test_rootdir and not test_version \
and not test_atomic_mass and not imageflags" and not test_atomic_mass and not imageflags" \
--ignore tests/plot/test_interpolate.py
''; '';
pythonImportsCheck = [ pythonImportsCheck = [

View file

@ -16,10 +16,11 @@
, scipy , scipy
, unidecode , unidecode
, xmltodict , xmltodict
, yabadaba
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.3.2"; version = "0.3.3";
pname = "potentials"; pname = "potentials";
format = "setuptools"; format = "setuptools";
@ -27,7 +28,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-u++ClAAc96u7k8w756sFR4oCtIOgERQ7foklxWWPprY="; hash = "sha256-kj2RDls5ziCH+AF982h8TplZccwdcna3BQMoBXAbOHE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -44,6 +45,7 @@ buildPythonPackage rec {
scipy scipy
unidecode unidecode
xmltodict xmltodict
yabadaba
]; ];
# Project has no tests # Project has no tests

View file

@ -1,6 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub { lib
, buildPythonPackage
, fetchFromGitHub
, cython , cython
, enum34
, glibcLocales , glibcLocales
, matplotlib , matplotlib
, monty , monty
@ -11,10 +12,10 @@
, plotly , plotly
, pybtex , pybtex
, pydispatcher , pydispatcher
, pythonOlder
, requests , requests
, ruamel-yaml , ruamel-yaml
, scipy , scipy
, six
, spglib , spglib
, sympy , sympy
, tabulate , tabulate
@ -23,14 +24,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pymatgen"; pname = "pymatgen";
version = "2022.2.7"; version = "2022.3.29";
format = "setuptools";
disabled = pythonOlder "3.8";
# sdist doesn't include c files
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "materialsproject"; owner = "materialsproject";
repo = "pymatgen"; repo = "pymatgen";
rev= "v${version}"; rev= "v${version}";
sha256 = "sha256-92Dxmo1Z9LR2caSOftIf1I6jeZmqDe3SqhhoCofWraw="; hash = "sha256-B2piRWx9TfKlGTPOAAGsq2GxyfHIRBVFpk6dxES0WF0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -39,7 +42,6 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
enum34
matplotlib matplotlib
monty monty
networkx networkx
@ -52,16 +54,18 @@ buildPythonPackage rec {
requests requests
ruamel-yaml ruamel-yaml
scipy scipy
six
spglib spglib
sympy sympy
tabulate tabulate
uncertainties uncertainties
]; ];
# No tests in pypi tarball. # Tests are not detected by pytest
doCheck = false; doCheck = false;
pythonImportsCheck = [ "pymatgen" ];
pythonImportsCheck = [
"pymatgen"
];
meta = with lib; { meta = with lib; {
description = "A robust materials analysis code that defines core object representations for structures and molecules"; description = "A robust materials analysis code that defines core object representations for structures and molecules";

View file

@ -0,0 +1,57 @@
{ lib
, buildPythonPackage
, cdcs
, datamodeldict
, fetchFromGitHub
, ipython
, lxml
, numpy
, pandas
, pymongo
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "yabadaba";
version = "0.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "usnistgov";
repo = pname;
rev = "v${version}";
hash = "sha256-Svw15epiSMEGMuFuMLqX2C9YFGtRtdg7DW2OVLPRmNI=";
};
propagatedBuildInputs = [
cdcs
datamodeldict
ipython
lxml
numpy
pandas
pymongo
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"yabadaba"
];
preCheck = ''
export HOME=$(mktemp -d);
'';
meta = with lib; {
description = "Abstraction layer allowing for common interactions with databases and records";
homepage = "https://github.com/usnistgov/yabadaba";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -10900,6 +10900,8 @@ in {
xxhash = callPackage ../development/python-modules/xxhash { }; xxhash = callPackage ../development/python-modules/xxhash { };
yabadaba = callPackage ../development/python-modules/yabadaba { };
yahooweather = callPackage ../development/python-modules/yahooweather { }; yahooweather = callPackage ../development/python-modules/yahooweather { };
yalesmartalarmclient = callPackage ../development/python-modules/yalesmartalarmclient { }; yalesmartalarmclient = callPackage ../development/python-modules/yalesmartalarmclient { };