3 backports-datetime-fromisoformat,
17 buildPythonPackage rec {
22 disabled = pythonOlder "3.6";
25 inherit pname version;
26 hash = "sha256-yvFobPdcYd0fBh7eXXpG51mxXV+Zh82OE8jEI3URJj0=";
29 build-system = [ setuptools ];
37 ] ++ lib.optionals (pythonOlder "3.7") [ backports-datetime-fromisoformat ];
39 passthru.optional-dependencies = {
45 ++ lib.optionals (pythonOlder "3.11") [ backports-datetime-fromisoformat ]
46 ++ urllib3.optional-dependencies.brotli;
52 ++ lib.optionals (pythonOlder "3.11") [ backports-datetime-fromisoformat ]
53 ++ urllib3.optional-dependencies.brotli;
56 nativeCheckInputs = [ pytestCheckHook ];
58 # disable tests that require an internet connection
65 pythonImportsCheck = [ "htmldate" ];
68 description = "Module for the extraction of original and updated publication dates from URLs and web pages";
69 homepage = "https://htmldate.readthedocs.io";
70 changelog = "https://github.com/adbar/htmldate/blob/v${version}/CHANGELOG.md";
71 license = licenses.asl20;
72 maintainers = with maintainers; [ jokatzke ];
73 mainProgram = "htmldate";