Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / launchpadlib / default.nix
blobaef2dfb98bff956c4a7434eec1235fc9568e61d0
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
16 buildPythonPackage rec {
17   pname = "launchpadlib";
18   version = "1.11.0";
19   format = "pyproject";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-AYmMk3R3sMZKdTOK2wl3Ao1zRqigGesCPPaP7ZmFAUY=";
24   };
26   propagatedBuildInputs = [
27     httplib2
28     keyring
29     lazr-restfulclient
30     lazr-uri
31     setuptools
32     six
33     testresources
34     wadllib
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39   ];
41   preCheck = ''
42     export HOME=$TMPDIR
43   '';
45   doCheck = isPy3k;
47   pythonImportsCheck = [
48     "launchpadlib"
49     "launchpadlib.apps"
50     "launchpadlib.credentials"
51   ];
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 = [ ];
58   };