at 23.11-beta 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5 6# build-system 7, setuptools 8, setuptools-scm 9 10# propagates 11, typing-extensions 12 13# tests 14, pytestCheckHook 15, pytest-subtests 16, numpy 17, matplotlib 18, uncertainties 19}: 20 21buildPythonPackage rec { 22 pname = "pint"; 23 version = "0.22"; 24 format = "pyproject"; 25 26 disabled = pythonOlder "3.6"; 27 28 src = fetchPypi { 29 inherit version; 30 pname = "Pint"; 31 hash = "sha256-LROfarvPMBbK19POwFcH/pCKxPmc9Zrt/W7mZ7emRDM="; 32 }; 33 34 nativeBuildInputs = [ 35 setuptools 36 setuptools-scm 37 ]; 38 39 propagatedBuildInputs = [ 40 typing-extensions 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 pytest-subtests 46 numpy 47 matplotlib 48 uncertainties 49 ]; 50 51 preCheck = '' 52 export HOME=$(mktemp -d) 53 ''; 54 55 disabledTests = [ 56 # https://github.com/hgrecco/pint/issues/1825 57 "test_equal_zero_nan_NP" 58 ]; 59 60 meta = with lib; { 61 changelog = "https://github.com/hgrecco/pint/blob/${version}/CHANGES"; 62 description = "Physical quantities module"; 63 license = licenses.bsd3; 64 homepage = "https://github.com/hgrecco/pint/"; 65 maintainers = with maintainers; [ doronbehar ]; 66 }; 67}