1{ lib 2, buildPythonPackage 3, fetchPypi 4, numpy 5, pytestCheckHook 6, pythonOlder 7, setuptools 8, setuptools-scm 9}: 10 11buildPythonPackage rec { 12 pname = "quantities"; 13 version = "0.14.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-7+r//AwDZPiRqTJyOc0SSWvMtVzQN6bRv0TecG9yKHc="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 setuptools-scm 26 ]; 27 28 propagatedBuildInputs = [ 29 numpy 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 disabledTests = [ 37 # test fails with numpy 1.24 38 "test_mul" 39 ]; 40 41 pythonImportsCheck = [ 42 "quantities" 43 ]; 44 45 meta = with lib; { 46 description = "Quantities is designed to handle arithmetic and conversions of physical quantities"; 47 homepage = "https://python-quantities.readthedocs.io/"; 48 changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt"; 49 license = licenses.bsd2; 50 maintainers = with maintainers; [ ]; 51 }; 52}