1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonRelaxDepsHook
5, docopt
6, para
7}:
8
9buildPythonPackage rec {
10 pname = "mwcli";
11 version = "0.0.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-ADMb0P8WtXIcnGJ02R4l/TVfRewHc8ig45JurAWHGaA=";
16 };
17
18 # Prevent circular dependency
19 pythonRemoveDeps = [
20 "mwxml"
21 ];
22
23 nativeBuildInputs = [
24 pythonRelaxDepsHook
25 ];
26
27 propagatedBuildInputs = [
28 docopt
29 para
30 ];
31
32 # Tests require mwxml which itself depends on this package (circular dependency)
33 doCheck = false;
34
35 meta = with lib; {
36 description = "A set of helper functions and classes for mediawiki-utilities command-line utilities";
37 homepage = "https://github.com/mediawiki-utilities/python-mwcli";
38 license = licenses.mit;
39 maintainers = with maintainers; [ GaetanLepage ];
40 };
41}