depot/third_party/nixpkgs/pkgs/development/python-modules/uncertainties/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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