3 backports-datetime-fromisoformat,
17 buildPythonPackage rec {
22 disabled = pythonOlder "3.8";
24 src = fetchFromGitHub {
27 rev = "refs/tags/v${version}";
28 hash = "sha256-VjOqttpbHp1wQARyHieAZie/yO74+S2mDbBXx00PKWM=";
31 build-system = [ setuptools ];
41 optional-dependencies = {
47 ++ lib.optionals (pythonOlder "3.11") [ backports-datetime-fromisoformat ]
48 ++ urllib3.optional-dependencies.brotli;
54 ++ lib.optionals (pythonOlder "3.11") [ backports-datetime-fromisoformat ]
55 ++ urllib3.optional-dependencies.brotli;
58 nativeCheckInputs = [ pytestCheckHook ];
61 # Tests that require an internet connection
65 "test_readme_examples"
68 pythonImportsCheck = [ "htmldate" ];
71 description = "Module for the extraction of original and updated publication dates from URLs and web pages";
72 homepage = "https://htmldate.readthedocs.io";
73 changelog = "https://github.com/adbar/htmldate/blob/v${version}/CHANGELOG.md";
74 license = licenses.asl20;
75 maintainers = with maintainers; [ jokatzke ];
76 mainProgram = "htmldate";