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