Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / extruct / default.nix
blob0673643de0db576ee210c1816ad04b84ec8edb1c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , html-text
5 , jstyleson
6 , lxml
7 , mf2py
8 , mock
9 , pyrdfa3
10 , pytestCheckHook
11 , pythonOlder
12 , pythonRelaxDepsHook
13 , rdflib
14 , setuptools
15 , six
16 , w3lib
19 buildPythonPackage rec {
20   pname = "extruct";
21   version = "0.16.0";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   src = fetchFromGitHub {
27     owner = "scrapinghub";
28     repo = "extruct";
29     rev = "refs/tags/v${version}";
30     hash = "sha256-6lAb17EoR0FKyIOb9hk1jcpmPtZ7vClfuCrDZ83XBeg=";
31   };
33   nativeBuildInputs = [
34     setuptools
35   ];
37   propagatedBuildInputs = [
38     html-text
39     jstyleson
40     lxml
41     mf2py
42     pyrdfa3
43     rdflib
44     six
45     w3lib
46   ];
48   nativeCheckInputs = [
49     mock
50     pytestCheckHook
51   ];
53   pythonImportsCheck = [
54     "extruct"
55   ];
57   disabledTests = [
58     # AssertionError: Lists differ
59     "test_microformat"
60     "test_umicroformat"
61   ];
63   meta = with lib; {
64     description = "Extract embedded metadata from HTML markup";
65     mainProgram = "extruct";
66     homepage = "https://github.com/scrapinghub/extruct";
67     changelog = "https://github.com/scrapinghub/extruct/blob/v${version}/HISTORY.rst";
68     license = licenses.bsd3;
69     maintainers = with maintainers; [ ambroisie ];
70   };