1{ lib 2, buildPythonPackage 3, python-dateutil 4, fetchPypi 5, isPy3k 6, mock 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "aniso8601"; 12 version = "9.0.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM="; 17 }; 18 19 propagatedBuildInputs = [ 20 python-dateutil 21 ]; 22 23 nativeCheckInputs = [ 24 pytestCheckHook 25 ] ++ lib.optional (!isPy3k) mock; 26 27 pythonImportsCheck = [ "aniso8601" ]; 28 29 meta = with lib; { 30 description = "Python Parser for ISO 8601 strings"; 31 homepage = "https://bitbucket.org/nielsenb/aniso8601"; 32 license = with licenses; [ bsd3 ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}