nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 47 lines 779 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, hypothesis 5, poetry-core 6, pytestCheckHook 7, pytz 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "iso8601"; 13 version = "1.0.2"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-J/UDIg5oRdnblU+yErlbA2LYt+bBsjJqhwYcPek1lLE="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 checkInputs = [ 28 hypothesis 29 pytestCheckHook 30 pytz 31 ]; 32 33 pytestFlagsArray = [ 34 "iso8601" 35 ]; 36 37 pythonImportsCheck = [ 38 "iso8601" 39 ]; 40 41 meta = with lib; { 42 description = "Simple module to parse ISO 8601 dates"; 43 homepage = "https://pyiso8601.readthedocs.io/"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}