f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
54 lines
942 B
Nix
54 lines
942 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
httplib2,
|
|
lazr-restfulclient,
|
|
lazr-uri,
|
|
setuptools,
|
|
six,
|
|
testresources,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "launchpadlib";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-XUqQlekXc6dWXUwVlZSuMOynkv1fm4ne1FnXEUhKlss=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
httplib2
|
|
lazr-restfulclient
|
|
lazr-uri
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
testresources
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"launchpadlib"
|
|
"launchpadlib.apps"
|
|
"launchpadlib.credentials"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Script Launchpad through its web services interfaces. Officially supported";
|
|
homepage = "https://help.launchpad.net/API/launchpadlib";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = [ ];
|
|
};
|
|
}
|