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