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";
|
2021-07-21 07:28:18 +00:00
|
|
|
version = "3.1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-21 07:28:18 +00:00
|
|
|
sha256 = "0b9y0v73ih142bygi66dxqx17j2x4dfvl7xnhmafj9yjmymbakbw";
|
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
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
checkPhase = "python setup.py 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;
|
|
|
|
};
|
|
|
|
}
|