1{ 2 lib, 3 arrow, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hypothesis, 7 isodate, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "isoduration"; 14 version = "20.11.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "bolsote"; 21 repo = "isoduration"; 22 rev = version; 23 hash = "sha256-6LqsH+3V/K0s2YD1gvmelo+cCH+yCAmmyTYGhUegVdk="; 24 }; 25 26 propagatedBuildInputs = [ arrow ]; 27 28 nativeCheckInputs = [ 29 hypothesis 30 isodate 31 pytestCheckHook 32 ]; 33 34 disabledTestPaths = [ 35 # We don't care about benchmarks 36 "tests/test_benchmark.py" 37 ]; 38 39 pythonImportsCheck = [ "isoduration" ]; 40 41 meta = with lib; { 42 description = "Library for operations with ISO 8601 durations"; 43 homepage = "https://github.com/bolsote/isoduration"; 44 license = licenses.isc; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}