depot/third_party/nixpkgs/pkgs/development/python-modules/uncertainties/default.nix

37 lines
718 B
Nix
Raw Normal View History

{
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;
};
}