Loading pkgs/development/python-modules/htmldate/default.nix 0 → 100644 +56 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchPypi , pythonOlder , charset-normalizer , dateparser , lxml , pytestCheckHook , python-dateutil , urllib3 , backports-datetime-fromisoformat }: buildPythonPackage rec { pname = "htmldate"; version = "1.6.0"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; hash = "sha256-WCfI9iahaACinlfoGIo9MtCwjKTHvWYlN7c7u/IsRaY="; }; propagatedBuildInputs = [ charset-normalizer dateparser lxml python-dateutil urllib3 ] ++ lib.optionals (pythonOlder "3.7") [ backports-datetime-fromisoformat ]; nativeCheckInputs = [ pytestCheckHook ]; # disable tests that require an internet connection disabledTests = [ "test_input" "test_cli" "test_download" ]; pythonImportsCheck = [ "htmldate" ]; meta = with lib; { description = "Fast and robust extraction of original and updated publication dates from URLs and web pages"; homepage = "https://htmldate.readthedocs.io"; changelog = "https://github.com/adbar/htmldate/blob/v${version}/CHANGELOG.md"; license = licenses.gpl3Plus; maintainers = with maintainers; [ jokatzke ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -5229,6 +5229,8 @@ self: super: with self; { html5-parser = callPackage ../development/python-modules/html5-parser { }; htmldate = callPackage ../development/python-modules/htmldate { }; htmllaundry = callPackage ../development/python-modules/htmllaundry { }; htmllistparse = callPackage ../development/python-modules/htmllistparse { }; Loading Loading
pkgs/development/python-modules/htmldate/default.nix 0 → 100644 +56 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchPypi , pythonOlder , charset-normalizer , dateparser , lxml , pytestCheckHook , python-dateutil , urllib3 , backports-datetime-fromisoformat }: buildPythonPackage rec { pname = "htmldate"; version = "1.6.0"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; hash = "sha256-WCfI9iahaACinlfoGIo9MtCwjKTHvWYlN7c7u/IsRaY="; }; propagatedBuildInputs = [ charset-normalizer dateparser lxml python-dateutil urllib3 ] ++ lib.optionals (pythonOlder "3.7") [ backports-datetime-fromisoformat ]; nativeCheckInputs = [ pytestCheckHook ]; # disable tests that require an internet connection disabledTests = [ "test_input" "test_cli" "test_download" ]; pythonImportsCheck = [ "htmldate" ]; meta = with lib; { description = "Fast and robust extraction of original and updated publication dates from URLs and web pages"; homepage = "https://htmldate.readthedocs.io"; changelog = "https://github.com/adbar/htmldate/blob/v${version}/CHANGELOG.md"; license = licenses.gpl3Plus; maintainers = with maintainers; [ jokatzke ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -5229,6 +5229,8 @@ self: super: with self; { html5-parser = callPackage ../development/python-modules/html5-parser { }; htmldate = callPackage ../development/python-modules/htmldate { }; htmllaundry = callPackage ../development/python-modules/htmllaundry { }; htmllistparse = callPackage ../development/python-modules/htmllistparse { }; Loading