python312Packages.launchpadlib: modernize

This commit is contained in:
Robert Schütz 2024-07-24 09:33:09 -07:00
parent 7106b2bf4a
commit 33019e7ea9

View File

@ -2,47 +2,43 @@
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
httplib2,
keyring_24,
lazr-restfulclient,
lazr-uri,
setuptools,
six,
testresources,
wadllib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "launchpadlib";
version = "2.0.0";
format = "pyproject";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-XUqQlekXc6dWXUwVlZSuMOynkv1fm4ne1FnXEUhKlss=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
httplib2
keyring_24
lazr-restfulclient
lazr-uri
setuptools
six
testresources
wadllib
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
testresources
];
preCheck = ''
export HOME=$TMPDIR
'';
doCheck = isPy3k;
pythonImportsCheck = [
"launchpadlib"
"launchpadlib.apps"