1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, httplib2
6, keyring
7, lazr-restfulclient
8, lazr-uri
9, setuptools
10, six
11, testresources
12, wadllib
13, pytestCheckHook
14}:
15
16buildPythonPackage rec {
17 pname = "launchpadlib";
18 version = "1.11.0";
19 format = "pyproject";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-AYmMk3R3sMZKdTOK2wl3Ao1zRqigGesCPPaP7ZmFAUY=";
24 };
25
26 propagatedBuildInputs = [
27 httplib2
28 keyring
29 lazr-restfulclient
30 lazr-uri
31 setuptools
32 six
33 testresources
34 wadllib
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 preCheck = ''
42 export HOME=$TMPDIR
43 '';
44
45 doCheck = isPy3k;
46
47 pythonImportsCheck = [
48 "launchpadlib"
49 "launchpadlib.apps"
50 "launchpadlib.credentials"
51 ];
52
53 meta = with lib; {
54 description = "Script Launchpad through its web services interfaces. Officially supported";
55 homepage = "https://help.launchpad.net/API/launchpadlib";
56 license = licenses.lgpl3Only;
57 maintainers = [ maintainers.marsam ];
58 };
59}