2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2020-07-18 16:06:22 +00:00
|
|
|
, nose, numpy, future
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncertainties";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-gBEeCDnyOcWyM8tHcgF7SDoLehVzpYG5Krd0ajXm+qs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
checkInputs = [ nose numpy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests -sv
|
|
|
|
'';
|
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;
|
|
|
|
};
|
|
|
|
}
|