at 22.05-pre 922 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, setuptools-scm 6, importlib-metadata 7, packaging 8# Check Inputs 9, pytestCheckHook 10, numpy 11, matplotlib 12, uncertainties 13}: 14 15buildPythonPackage rec { 16 pname = "pint"; 17 version = "0.14"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "Pint"; 22 sha256 = "0wkzb7g20wzpqr3xaqpq96dlfv6irw202icsz81ys8npp7mm194s"; 23 }; 24 25 disabled = pythonOlder "3.6"; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28 29 propagatedBuildInputs = [ packaging ] 30 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; 31 32 # Test suite explicitly requires pytest 33 checkInputs = [ 34 pytestCheckHook 35 numpy 36 matplotlib 37 uncertainties 38 ]; 39 dontUseSetuptoolsCheck = true; 40 41 meta = with lib; { 42 description = "Physical quantities module"; 43 license = licenses.bsd3; 44 homepage = "https://github.com/hgrecco/pint/"; 45 maintainers = [ maintainers.costrouc ]; 46 }; 47 48}