Files
nixpkgs/pkgs/development/python-modules/launchpadlib/default.nix
2026-05-30 03:53:18 +02:00

55 lines
942 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
httplib2,
lazr-restfulclient,
lazr-uri,
setuptools_80,
six,
testresources,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "launchpadlib";
version = "2.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-tMJYkLt1BQ1UwIEj0nMxVreKWaJVX1Rh9psORM2RJC8=";
};
build-system = [ setuptools_80 ];
dependencies = [
httplib2
lazr-restfulclient
lazr-uri
six
];
nativeCheckInputs = [
pytestCheckHook
testresources
];
preCheck = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [
"launchpadlib"
"launchpadlib.apps"
"launchpadlib.credentials"
];
meta = {
description = "Script Launchpad through its web services interfaces. Officially supported";
homepage = "https://help.launchpad.net/API/launchpadlib";
license = lib.licenses.lgpl3Only;
maintainers = [ ];
};
}