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