summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/launchpadlib/default.nix
blob: db6e0c9ab8e03ffe1bb1da5c0247ffcd9a16b039 (plain)
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
52
53
54
{
  lib,
  buildPythonPackage,
  fetchPypi,
  httplib2,
  lazr-restfulclient,
  lazr-uri,
  setuptools,
  six,
  testresources,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "launchpadlib";
  version = "2.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-tMJYkLt1BQ1UwIEj0nMxVreKWaJVX1Rh9psORM2RJC8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    httplib2
    lazr-restfulclient
    lazr-uri
    six
  ];

  nativeCheckInputs = [
    pytestCheckHook
    testresources
  ];

  preCheck = ''
    export HOME=$TMPDIR
  '';

  pythonImportsCheck = [
    "launchpadlib"
    "launchpadlib.apps"
    "launchpadlib.credentials"
  ];

  meta = {
    description = "Script Launchpad through its web services interfaces. Officially supported";
    homepage = "https://help.launchpad.net/API/launchpadlib";
    license = lib.licenses.lgpl3Only;
    maintainers = [ ];
  };
}