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