diff options
Diffstat (limited to 'pkgs/development/python-modules/uncertainties/default.nix')
-rw-r--r-- | pkgs/development/python-modules/uncertainties/default.nix | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/uncertainties/default.nix b/pkgs/development/python-modules/uncertainties/default.nix index db120296a24f0..9d8cb99be6852 100644 --- a/pkgs/development/python-modules/uncertainties/default.nix +++ b/pkgs/development/python-modules/uncertainties/default.nix @@ -1,32 +1,44 @@ { lib, buildPythonPackage, - setuptools-scm, fetchFromGitHub, - pytestCheckHook, + + # build-system + setuptools, + setuptools-scm, + + # optional-dependencies numpy, + + # tests + pytestCheckHook, }: buildPythonPackage rec { pname = "uncertainties"; - version = "3.2.1"; + version = "3.2.2"; pyproject = true; src = fetchFromGitHub { owner = "lmfit"; repo = "uncertainties"; rev = "refs/tags/${version}"; - hash = "sha256-AaFazHeq7t4DnG2s9GvmAJ3ni62PWHR//mNPL+WyGSI="; + hash = "sha256-cm0FeJCxyBLN0GCKPnscBCx9p9qCDQdwRfhBRgQIhAo="; }; - nativeBuildInputs = [ + build-system = [ + setuptools setuptools-scm ]; + optional-dependencies.arrays = [ numpy ]; + nativeCheckInputs = [ pytestCheckHook - numpy - ]; + ] + ++ optional-dependencies.arrays; + + pythonImportsCheck = [ "uncertainties" ]; meta = with lib; { homepage = "https://pythonhosted.org/uncertainties/"; |