about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mwxml/default.nix
blob: 0c04715374324adb9bc2aecf7a8d3de103a7cfc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchPypi
, jsonschema
, mwcli
, mwtypes
, nose
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "mwxml";
  version = "0.3.3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-CEjfDPLik3GPVUMRrPRxW9Z59jn05Sy+R9ggZYnbHTE=";
  };

  propagatedBuildInputs = [
    jsonschema
    mwcli
    mwtypes
  ];

  nativeCheckInputs = [
    nose
    pytestCheckHook
  ];

  disabledTests = [
    "test_page_with_discussion"
  ];

  pythonImportsCheck = [ "mwxml" ];

  meta = with lib; {
    description = "A set of utilities for processing MediaWiki XML dump data";
    homepage = "https://github.com/mediawiki-utilities/python-mwxml";
    license = licenses.mit;
    maintainers = with maintainers; [ GaetanLepage ];
  };
}