2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, httplib2
|
|
|
|
, keyring
|
|
|
|
, lazr-restfulclient
|
|
|
|
, lazr-uri
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, testresources
|
|
|
|
, wadllib
|
2021-02-22 21:28:39 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "launchpadlib";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.11.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-AYmMk3R3sMZKdTOK2wl3Ao1zRqigGesCPPaP7ZmFAUY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
httplib2
|
|
|
|
keyring
|
|
|
|
lazr-restfulclient
|
|
|
|
lazr-uri
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
testresources
|
|
|
|
wadllib
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = isPy3k;
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"launchpadlib"
|
|
|
|
"launchpadlib.apps"
|
|
|
|
"launchpadlib.credentials"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Script Launchpad through its web services interfaces. Officially supported";
|
|
|
|
homepage = "https://help.launchpad.net/API/launchpadlib";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|