From 2508c38ed56bd4b6712dfadd3dcc19a4802d7b35 Mon Sep 17 00:00:00 2001 From: SandaruKasa Date: Fri, 22 May 2026 15:27:08 +0300 Subject: [PATCH] python3Packages.pyudev: migrate to pyproject --- .../python-modules/pyudev/default.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pyudev/default.nix b/pkgs/development/python-modules/pyudev/default.nix index 267d8040c762..eabf1f575257 100644 --- a/pkgs/development/python-modules/pyudev/default.nix +++ b/pkgs/development/python-modules/pyudev/default.nix @@ -9,12 +9,13 @@ hypothesis, docutils, stdenvNoCC, + setuptools, }: buildPythonPackage rec { pname = "pyudev"; version = "0.24.4"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -26,13 +27,9 @@ buildPythonPackage rec { --replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'" ''; - nativeCheckInputs = [ - pytest - mock - hypothesis - docutils - ]; - propagatedBuildInputs = [ six ]; + build-system = [ setuptools ]; + + dependencies = [ six ]; checkPhase = '' py.test @@ -42,6 +39,13 @@ buildPythonPackage rec { # https://github.com/pyudev/pyudev/issues/187 doCheck = false; + nativeCheckInputs = [ + pytest + mock + hypothesis + docutils + ]; + meta = { homepage = "https://pyudev.readthedocs.org/"; description = "Pure Python libudev binding";