587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
32 lines
700 B
Nix
32 lines
700 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;
|
|
};
|
|
}
|