blob: 7b24ef4c8bb4e8050ba3dc602fd6f744bd0d1b51 (
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
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
jsonschema,
mwcli,
mwtypes,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "mwxml";
version = "0.3.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ejf3RfdwcEp0Ge+96dORuHS5Bx28GSs7H4HD1LUnde4=";
};
patches = [
# https://github.com/mediawiki-utilities/python-mwxml/pull/21
(fetchpatch2 {
name = "nose-to-pytest.patch";
url = "https://github.com/mediawiki-utilities/python-mwxml/compare/2b477be6aa9794064d03b5be38c7759d1570488b...71bbfd2b309e0720a34a4e783b71169aebc571ef.patch";
hash = "sha256-4XxNvda1Dj+kFbD9t9gzucrMjdfXcoqYlvecXO2B2R0=";
})
];
build-system = [ setuptools ];
dependencies = [
jsonschema
mwcli
mwtypes
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mwxml" ];
meta = {
description = "Set of utilities for processing MediaWiki XML dump data";
mainProgram = "mwxml";
homepage = "https://github.com/mediawiki-utilities/python-mwxml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|