From e7c25c0b3a53e831f57f20086ba86d50e8c73bcd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 5 Jun 2026 20:48:12 +0000 Subject: [PATCH] python3Packages.libusbsio: 2.1.13 -> 2.2.0 --- .../python-modules/libusbsio/default.nix | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/libusbsio/default.nix b/pkgs/development/python-modules/libusbsio/default.nix index 5255924f6526..b4ff453b8be1 100644 --- a/pkgs/development/python-modules/libusbsio/default.nix +++ b/pkgs/development/python-modules/libusbsio/default.nix @@ -3,18 +3,19 @@ buildPythonPackage, fetchPypi, libusbsio, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "libusbsio"; - format = "setuptools"; - version = "2.1.13"; # If the versions come back into sync switch back to inheriting from c lib # inherit (libusbsio) version; + version = "2.2.0"; + pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-3xudSyqfXq3wsFdOgBeGK1nSY0NZjx9UhmTqbQGXWyU="; + inherit (finalAttrs) pname version; + hash = "sha256-zs4LXyTQzrUrepp4ZEI+0rEq5F1BAXFmGaE85KLIqwA="; }; # The source includes both the python module directly and also prebuilt binaries @@ -22,9 +23,15 @@ buildPythonPackage rec { postPatch = '' rm -rf libusbsio/bin substituteInPlace libusbsio/libusbsio.py \ - --replace "dllpath = LIBUSBSIO._lookup_dll_path(dfltdir, dllname)" 'dllpath = "${libusbsio}/lib/" + dllname' + --replace-fail \ + "dllpath = LIBUSBSIO._lookup_dll_path(dfltdir, dllname)" \ + 'dllpath = "${lib.getLib libusbsio}/lib/" + dllname' ''; + build-system = [ + setuptools + ]; + buildInputs = [ libusbsio ]; doCheck = false; # they require a device to be connected over USB @@ -38,4 +45,4 @@ buildPythonPackage rec { maintainers = [ ]; }; -} +})