From 5943391410724564ec2e0af72f8a9ed1507cc274 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 24 Dec 2025 21:14:30 +0100 Subject: [PATCH] python313Packages.pylxd: modernize --- pkgs/development/python-modules/pylxd/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pylxd/default.nix b/pkgs/development/python-modules/pylxd/default.nix index ced05579591c..b3f0192c13f3 100644 --- a/pkgs/development/python-modules/pylxd/default.nix +++ b/pkgs/development/python-modules/pylxd/default.nix @@ -7,7 +7,6 @@ mock-services, pytestCheckHook, python-dateutil, - pythonOlder, requests, urllib3, requests-toolbelt, @@ -21,8 +20,6 @@ buildPythonPackage rec { version = "2.3.7"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "canonical"; repo = "pylxd"; @@ -32,11 +29,9 @@ buildPythonPackage rec { pythonRelaxDeps = [ "urllib3" ]; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ cryptography python-dateutil requests @@ -62,7 +57,7 @@ buildPythonPackage rec { meta = { description = "Library for interacting with the LXD REST API"; homepage = "https://pylxd.readthedocs.io/"; - changelog = "https://github.com/canonical/pylxd/releases/tag/${version}"; + changelog = "https://github.com/canonical/pylxd/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; };