depot/third_party/nixpkgs/pkgs/development/python-modules/launchpadlib/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

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 = [ ];
};
}