diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-16 18:01:56 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-16 18:01:56 +0100 |
commit | ad1d0fb77219394407f81a075d4ef789538c2328 (patch) | |
tree | 68e77dbddfd61aca7745563faf4bdb8bf5be4dc9 /pkgs/development/python-modules/atomman/default.nix | |
parent | e6feb74002f5ae542e4a09cf04e04a2f24d8dd89 (diff) |
python3Packages.atomman: 1.3.0 -> 1.4.2
Diffstat (limited to 'pkgs/development/python-modules/atomman/default.nix')
-rw-r--r-- | pkgs/development/python-modules/atomman/default.nix | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/atomman/default.nix b/pkgs/development/python-modules/atomman/default.nix index b576504588aa4..8e03dbe67af7d 100644 --- a/pkgs/development/python-modules/atomman/default.nix +++ b/pkgs/development/python-modules/atomman/default.nix @@ -1,39 +1,66 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27 +{ lib +, buildPythonPackage , cython , datamodeldict +, fetchFromGitHub , matplotlib , numericalunits , numpy , pandas +, potentials , pytest +, pythonOlder , scipy , toolz , xmltodict +, python }: buildPythonPackage rec { - version = "1.3.0"; + version = "1.4.2"; pname = "atomman"; - disabled = isPy27; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "usnistgov"; - repo = "atomman"; + repo = "atomman"; rev = "v${version}"; - sha256 = "09pfykd96wmw00s3kgabghykjn8b4yjml4ybpi7kwy7ygdmzcx51"; + sha256 = "sha256-Kq4mDykYf74ylWw2golxc81CYKGokXro64YUsFctLmk="; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits toolz ]; + propagatedBuildInputs = [ + cython + datamodeldict + matplotlib + numericalunits + numpy + pandas + potentials + scipy + toolz + xmltodict + ]; + + checkInputs = [ + pytest + ]; checkPhase = '' - py.test tests -k 'not test_atomic' + # pytestCheckHook doesn't work + py.test tests -k "not test_rootdir and not test_version \ + and not test_atomic_mass and not imageflags" ''; + pythonImportsCheck = [ + "atomman" + ]; + meta = with lib; { - homepage = "https://github.com/usnistgov/atomman/"; description = "Atomistic Manipulation Toolkit"; + homepage = "https://github.com/usnistgov/atomman/"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } |