2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-01 15:47:52 +00:00
|
|
|
setuptools-scm,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy,
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncertainties";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "3.2.1";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lmfit";
|
|
|
|
repo = "uncertainties";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-AaFazHeq7t4DnG2s9GvmAJ3ni62PWHR//mNPL+WyGSI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
2024-07-01 15:47:52 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://pythonhosted.org/uncertainties/";
|
|
|
|
description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)";
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|