python312Packages.lazr-restfulclient: modernize

This commit is contained in:
natsukium
2025-01-11 16:56:04 +09:00
parent 3521f95be7
commit 6a552b0065
@@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
isPy27,
fetchPypi,
distro,
httplib2,
@@ -16,17 +15,19 @@
}:
buildPythonPackage rec {
pname = "lazr.restfulclient";
pname = "lazr-restfulclient";
version = "0.14.6";
disabled = isPy27; # namespace is broken for python2
pyproject = true;
src = fetchPypi {
inherit pname version;
pname = "lazr.restfulclient";
inherit version;
hash = "sha256-Q/EqHTlIRjsUYgOMR7Qp3LXkLgun8uFlEbArpdKt/9s=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
distro
httplib2
oauthlib
@@ -46,10 +47,13 @@ buildPythonPackage rec {
pythonImportsCheck = [ "lazr.restfulclient" ];
meta = with lib; {
pythonNamespaces = [ "lazr" ];
meta = {
description = "Programmable client library that takes advantage of the commonalities among";
homepage = "https://launchpad.net/lazr.restfulclient";
license = licenses.lgpl3;
changelog = "https://git.launchpad.net/lazr.restfulclient/tree/NEWS.rst?h=${version}";
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
};
}