2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage
|
2020-07-14 19:46:47 +01:00
|
|
|
, nose, numpy, future
|
|
|
|
}:
|
2017-06-01 21:05:26 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncertainties";
|
2020-12-05 19:52:09 +00:00
|
|
|
version = "3.1.5";
|
2017-06-01 21:05:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-05 19:52:09 +00:00
|
|
|
sha256 = "00z9xl40czmqk0vmxjvmjvwb41r893l4dad7nj1nh6blw3kw28li";
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|