1{ lib
2, buildPythonPackage
3, fetchPypi
4, jsonschema
5, mwcli
6, mwtypes
7, nose
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "mwxml";
13 version = "0.3.3";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-CEjfDPLik3GPVUMRrPRxW9Z59jn05Sy+R9ggZYnbHTE=";
18 };
19
20 propagatedBuildInputs = [
21 jsonschema
22 mwcli
23 mwtypes
24 ];
25
26 nativeCheckInputs = [
27 nose
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 "test_page_with_discussion"
33 ];
34
35 pythonImportsCheck = [ "mwxml" ];
36
37 meta = with lib; {
38 description = "A set of utilities for processing MediaWiki XML dump data";
39 homepage = "https://github.com/mediawiki-utilities/python-mwxml";
40 license = licenses.mit;
41 maintainers = with maintainers; [ GaetanLepage ];
42 };
43}