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