at master 863 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hypothesis, 6 poetry-core, 7 pytestCheckHook, 8 pytz, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "iso8601"; 14 version = "2.1.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-ax04Ke6JIcQwGZjJCfeCn6ntPL2sDTsWry10Ou0bqN8="; 22 }; 23 24 nativeBuildInputs = [ poetry-core ]; 25 26 nativeCheckInputs = [ 27 hypothesis 28 pytestCheckHook 29 pytz 30 ]; 31 32 enabledTestPaths = [ "iso8601" ]; 33 34 pythonImportsCheck = [ "iso8601" ]; 35 36 meta = with lib; { 37 description = "Simple module to parse ISO 8601 dates"; 38 homepage = "https://pyiso8601.readthedocs.io/"; 39 changelog = "https://github.com/micktwomey/pyiso8601/blob/${version}/CHANGELOG.md"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}