nixpkgs-suyu/pkgs/development/python-modules/pint/default.nix
Robert Scott 5f40ba47d5 pythonPackages.pint: add missing dependencies
importlib-metadata and packaging appear to have been falsely satisfied
by the inclusion of pytestCheckHook in checkInputs. this can be
demonstrated by attempting to build this package with doCheck = false.

also removed the isPy27 clause as package no longer seems to support <3.6
anyway now.
2020-08-30 09:22:37 -07:00

48 lines
924 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools_scm
, importlib-metadata
, packaging
# Check Inputs
, pytestCheckHook
, numpy
, matplotlib
, uncertainties
}:
buildPythonPackage rec {
pname = "pint";
version = "0.14";
src = fetchPypi {
inherit version;
pname = "Pint";
sha256 = "0wkzb7g20wzpqr3xaqpq96dlfv6irw202icsz81ys8npp7mm194s";
};
disabled = pythonOlder "3.6";
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ packaging ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# 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 ];
};
}