about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mwcli/default.nix
blob: 613a52bd8a675e6566640d8cbdd308623d9d788d (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pythonRelaxDepsHook,
  docopt,
  para,
}:

buildPythonPackage rec {
  pname = "mwcli";
  version = "0.0.3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ADMb0P8WtXIcnGJ02R4l/TVfRewHc8ig45JurAWHGaA=";
  };

  # Prevent circular dependency
  pythonRemoveDeps = [ "mwxml" ];

  nativeBuildInputs = [ pythonRelaxDepsHook ];

  propagatedBuildInputs = [
    docopt
    para
  ];

  # Tests require mwxml which itself depends on this package (circular dependency)
  doCheck = false;

  meta = with lib; {
    description = "Set of helper functions and classes for mediawiki-utilities command-line utilities";
    homepage = "https://github.com/mediawiki-utilities/python-mwcli";
    license = licenses.mit;
    maintainers = with maintainers; [ GaetanLepage ];
  };
}