nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # optional-dependencies 11 numpy, 12 13 # tests 14 pytestCheckHook, 15 scipy, 16}: 17 18buildPythonPackage rec { 19 pname = "uncertainties"; 20 version = "3.2.4"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "lmfit"; 25 repo = "uncertainties"; 26 tag = version; 27 hash = "sha256-XfEiE27azEBNCZ6sIBncJI1cYocoXwgxEkclVgR5O34="; 28 }; 29 30 build-system = [ 31 setuptools 32 setuptools-scm 33 ]; 34 35 optional-dependencies.arrays = [ numpy ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 scipy 40 ] 41 ++ optional-dependencies.arrays; 42 43 disabledTests = [ 44 # Flaky tests, see: https://github.com/lmfit/uncertainties/issues/343 45 "test_repeated_summation_complexity" 46 ]; 47 48 pythonImportsCheck = [ "uncertainties" ]; 49 50 meta = { 51 homepage = "https://uncertainties.readthedocs.io/"; 52 description = "Transparent calculations with uncertainties on the quantities involved (aka error propagation)"; 53 maintainers = with lib.maintainers; [ 54 rnhmjoj 55 doronbehar 56 ]; 57 license = lib.licenses.bsd3; 58 }; 59}