nixpkgs/pkgs/development/python-modules/pint/default.nix

49 lines
922 B
Nix
Raw Permalink Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2020-04-03 16:20:41 +00:00
, pythonOlder
, setuptools-scm
, importlib-metadata
, packaging
2020-04-03 16:20:41 +00:00
# Check Inputs
, pytestCheckHook
, numpy
, matplotlib
, uncertainties
}:
buildPythonPackage rec {
pname = "pint";
2020-07-06 10:34:54 +00:00
version = "0.14";
src = fetchPypi {
inherit version;
pname = "Pint";
2020-07-06 10:34:54 +00:00
sha256 = "0wkzb7g20wzpqr3xaqpq96dlfv6irw202icsz81ys8npp7mm194s";
};
2020-04-03 16:20:41 +00:00
disabled = pythonOlder "3.6";
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ packaging ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
2020-04-03 16:20:41 +00:00
# Test suite explicitly requires pytest
checkInputs = [
pytestCheckHook
numpy
matplotlib
uncertainties
];
dontUseSetuptoolsCheck = true;
meta = with lib; {
description = "Physical quantities module";
license = licenses.bsd3;
homepage = "https://github.com/hgrecco/pint/";
maintainers = [ maintainers.costrouc ];
};
}