2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-01 15:47:52 +00:00
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
|
|
|
|
# optional-dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncertainties";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.2.2";
|
2024-07-01 15:47:52 +00:00
|
|
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-cm0FeJCxyBLN0GCKPnscBCx9p9qCDQdwRfhBRgQIhAo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2024-07-01 15:47:52 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
optional-dependencies.arrays = [ numpy ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
2024-07-01 15:47:52 +00:00
|
|
|
pytestCheckHook
|
2024-07-27 06:49:29 +00:00
|
|
|
]
|
|
|
|
++ optional-dependencies.arrays;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "uncertainties" ];
|
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;
|
|
|
|
};
|
|
|
|
}
|