2020-07-14 19:46:47 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
|
|
|
, nose, numpy, future
|
|
|
|
}:
|
2017-06-01 21:05:26 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncertainties";
|
2020-07-14 19:46:47 +01:00
|
|
|
version = "3.1.4";
|
2017-06-01 21:05:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-14 19:46:47 +01:00
|
|
|
sha256 = "0s69kdhl8vhqazhxqdvb06l83x0iqdm0yr4vp3p52alzi6a8lm33";
|
2017-06-01 21:05:26 +01:00
|
|
|
};
|
|
|
|
|
2020-07-14 19:46:47 +01:00
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
checkInputs = [ nose numpy ];
|
2017-06-01 21:05:26 +01:00
|
|
|
|
2020-07-14 19:46:47 +01:00
|
|
|
checkPhase = "python setup.py nosetests -sv";
|
2017-06-01 21:05:26 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pythonhosted.org/uncertainties/";
|
2017-06-01 21:05:26 +01:00
|
|
|
description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)";
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
2017-06-01 21:05:26 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|