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