Skip to content

Commit

Permalink
Merge pull request #297636 from fabaff/htmldate-bump
Browse files Browse the repository at this point in the history
python311Packages.htmldate: 1.7.0 -> 1.8.0
  • Loading branch information
fabaff authored Mar 21, 2024
2 parents 20f77aa + b6225fc commit b3bced2
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions pkgs/development/python-modules/htmldate/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
{ lib
, backports-datetime-fromisoformat
, buildPythonPackage
, fetchPypi
, pythonOlder
, charset-normalizer
, dateparser
, faust-cchardet
, fetchPypi
, lxml
, pytestCheckHook
, python-dateutil
, pythonOlder
, setuptools
, urllib3
, backports-datetime-fromisoformat
}:

buildPythonPackage rec {
pname = "htmldate";
version = "1.7.0";
format = "setuptools";
version = "1.8.0";
pyproject = true;

disabled = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
hash = "sha256-AqgA3SJMv3S/SDsEL2ThT1e6DkDGtEBLKE6YvGwwto0=";
hash = "sha256-+Ux9AX9Coc9CLlp8XvEMrLridohjFPJ6mGRkYn8wuxU=";
};

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
charset-normalizer
dateparser
Expand All @@ -33,6 +39,21 @@ buildPythonPackage rec {
backports-datetime-fromisoformat
];

passthru.optional-dependencies = {
speed = [
faust-cchardet
urllib3
] ++ lib.optionals (pythonOlder "3.11") [
backports-datetime-fromisoformat
] ++ urllib3.optional-dependencies.brotli;
all = [
faust-cchardet
urllib3
] ++ lib.optionals (pythonOlder "3.11") [
backports-datetime-fromisoformat
] ++ urllib3.optional-dependencies.brotli;
};

nativeCheckInputs = [
pytestCheckHook
];
Expand All @@ -44,14 +65,16 @@ buildPythonPackage rec {
"test_download"
];

pythonImportsCheck = [ "htmldate" ];
pythonImportsCheck = [
"htmldate"
];

meta = with lib; {
description = "Fast and robust extraction of original and updated publication dates from URLs and web pages";
mainProgram = "htmldate";
description = "Module for the 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 ];
mainProgram = "htmldate";
};
}

1 comment on commit b3bced2

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/gns3-build-failed/42256/2

Please sign in to comment.