Commit 12844b00 authored by Doron Behar's avatar Doron Behar
Browse files

python312Packages.uncertainties: 3.1.7 -> 3.2.1

parent 0b8fdadf
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  future,
  setuptools-scm,
  fetchFromGitHub,
  pytestCheckHook,
  numpy,
  pynose,
}:

buildPythonPackage rec {
  pname = "uncertainties";
  version = "3.1.7";
  format = "setuptools";
  version = "3.2.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-gBEeCDnyOcWyM8tHcgF7SDoLehVzpYG5Krd0ajXm+qs=";
  src = fetchFromGitHub {
    owner = "lmfit";
    repo = "uncertainties";
    rev = "refs/tags/${version}";
    hash = "sha256-AaFazHeq7t4DnG2s9GvmAJ3ni62PWHR//mNPL+WyGSI=";
  };

  propagatedBuildInputs = [ future ];
  nativeBuildInputs = [
    setuptools-scm
  ];

  nativeCheckInputs = [
    pynose
    pytestCheckHook
    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)";