nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchPypi, buildPythonPackage
2, nose, numpy, future
3}:
4
5buildPythonPackage rec {
6 pname = "uncertainties";
7 version = "3.1.6";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0b9y0v73ih142bygi66dxqx17j2x4dfvl7xnhmafj9yjmymbakbw";
12 };
13
14 propagatedBuildInputs = [ future ];
15 checkInputs = [ 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}