1{ lib, fetchPypi, buildPythonPackage
2, nose, numpy, future
3}:
4
5buildPythonPackage rec {
6 pname = "uncertainties";
7 version = "3.1.7";
8
9 src = fetchPypi {
10 inherit pname version;
11 hash = "sha256-gBEeCDnyOcWyM8tHcgF7SDoLehVzpYG5Krd0ajXm+qs=";
12 };
13
14 propagatedBuildInputs = [ future ];
15 nativeCheckInputs = [ nose numpy ];
16
17 checkPhase = ''
18 nosetests -sv
19 '';
20
21 meta = with lib; {
22 homepage = "https://pythonhosted.org/uncertainties/";
23 description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)";
24 maintainers = with maintainers; [ rnhmjoj ];
25 license = licenses.bsd3;
26 };
27}