depot/third_party/nixpkgs/pkgs/development/python-modules/uncertainties/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

49 lines
958 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# optional-dependencies
numpy,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "uncertainties";
version = "3.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "lmfit";
repo = "uncertainties";
rev = "refs/tags/${version}";
hash = "sha256-cm0FeJCxyBLN0GCKPnscBCx9p9qCDQdwRfhBRgQIhAo=";
};
build-system = [
setuptools
setuptools-scm
];
optional-dependencies.arrays = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
]
++ optional-dependencies.arrays;
pythonImportsCheck = [ "uncertainties" ];
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;
};
}