From e6feb74002f5ae542e4a09cf04e04a2f24d8dd89 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 16 Nov 2021 17:18:30 +0100 Subject: [PATCH] python3Packages.potentials: init at 0.3.1 --- .../python-modules/potentials/default.nix | 58 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/development/python-modules/potentials/default.nix diff --git a/pkgs/development/python-modules/potentials/default.nix b/pkgs/development/python-modules/potentials/default.nix new file mode 100644 index 000000000000..24db19b3c065 --- /dev/null +++ b/pkgs/development/python-modules/potentials/default.nix @@ -0,0 +1,58 @@ +{ lib +, buildPythonPackage +, fetchPypi +, ipywidgets +, cdcs +, bibtexparser +, habanero +, pandas +, requests +, numpy +, matplotlib +, unidecode +, datamodeldict +, xmltodict +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + version = "0.3.1"; + pname = "potentials"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "02l1rav5jdfsb00byxbswyhqdnjljp9y7g4ddn4mivzi7x39qa52"; + }; + + propagatedBuildInputs = [ + ipywidgets + cdcs + bibtexparser + habanero + pandas + requests + numpy + matplotlib + unidecode + datamodeldict + xmltodict + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "potentials" + ]; + + meta = with lib; { + description = "Python API database tools for accessing the NIST Interatomic Potentials Repository"; + homepage = "https://github.com/usnistgov/potentials"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 734d1c80281e..7c86a8d4bb9f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5918,6 +5918,8 @@ in { pot = callPackage ../development/python-modules/pot { }; + potentials = callPackage ../development/python-modules/potentials { }; + potr = callPackage ../development/python-modules/potr { }; power = callPackage ../development/python-modules/power { };