fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
36 lines
718 B
Nix
36 lines
718 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
future,
|
|
numpy,
|
|
pynose,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uncertainties";
|
|
version = "3.1.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gBEeCDnyOcWyM8tHcgF7SDoLehVzpYG5Krd0ajXm+qs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
nativeCheckInputs = [
|
|
pynose
|
|
numpy
|
|
];
|
|
|
|
checkPhase = ''
|
|
nosetests -sve test_1to2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pythonhosted.org/uncertainties/";
|
|
description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)";
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|