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