diff options
Diffstat (limited to 'pkgs/development/python-modules/uncertainties/default.nix')
-rw-r--r-- | pkgs/development/python-modules/uncertainties/default.nix | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/uncertainties/default.nix b/pkgs/development/python-modules/uncertainties/default.nix index a098bb8c45348..db120296a24f0 100644 --- a/pkgs/development/python-modules/uncertainties/default.nix +++ b/pkgs/development/python-modules/uncertainties/default.nix @@ -1,32 +1,33 @@ { lib, buildPythonPackage, - fetchPypi, - future, + setuptools-scm, + fetchFromGitHub, + pytestCheckHook, numpy, - pynose, }: buildPythonPackage rec { pname = "uncertainties"; - version = "3.1.7"; - format = "setuptools"; + version = "3.2.1"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-gBEeCDnyOcWyM8tHcgF7SDoLehVzpYG5Krd0ajXm+qs="; + src = fetchFromGitHub { + owner = "lmfit"; + repo = "uncertainties"; + rev = "refs/tags/${version}"; + hash = "sha256-AaFazHeq7t4DnG2s9GvmAJ3ni62PWHR//mNPL+WyGSI="; }; - propagatedBuildInputs = [ future ]; + nativeBuildInputs = [ + setuptools-scm + ]; + nativeCheckInputs = [ - pynose + pytestCheckHook numpy ]; - checkPhase = '' - nosetests -sve test_1to2 - ''; - meta = with lib; { homepage = "https://pythonhosted.org/uncertainties/"; description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)"; |