nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.10.16";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "0df4b13936f988afd0ee485f40fa6922eab783b48c38ca0108cb73c8788fca80";
23 };
24
25 propagatedBuildInputs = [
26 httplib2
27 keyring
28 lazr-restfulclient
29 lazr-uri
30 setuptools
31 six
32 testresources
33 wadllib
34 ];
35
36 checkInputs = [ pytestCheckHook ];
37
38 preCheck = ''
39 export HOME=$TMPDIR
40 '';
41
42 doCheck = isPy3k;
43
44 meta = with lib; {
45 description = "Script Launchpad through its web services interfaces. Officially supported";
46 homepage = "https://help.launchpad.net/API/launchpadlib";
47 license = licenses.lgpl3Only;
48 maintainers = [ maintainers.marsam ];
49 };
50}