depot/third_party/nixpkgs/pkgs/development/python-modules/uncertainties/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

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