python310Packages.hidapi 0 -> 1 attrpath: python310Packages.hidapi Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/5dzc0haykphz1qm15jgg615hr23x0hsy-packages.json.drv building '/nix/store/5dzc0haykphz1qm15jgg615hr23x0hsy-packages.json.drv'... Going to be running update for following packages: - python3.10-hidapi-0.12.0.post2 Press Enter key to continue... Running update for: - python3.10-hidapi-0.12.0.post2: UPDATING ... - python3.10-hidapi-0.12.0.post2: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/python-modules/hidapi/default.nix b/pkgs/development/python-modules/hidapi/default.nix index 977d94e8a20..822271507a7 100644 --- a/pkgs/development/python-modules/hidapi/default.nix +++ b/pkgs/development/python-modules/hidapi/default.nix @@ -11,11 +11,11 @@ buildPythonPackage rec { pname = "hidapi"; - version = "0.12.0.post2"; + version = "0.13.1"; src = fetchPypi { inherit pname version; - sha256 = "8ebb2117be8b27af5c780936030148e1971b6b7fda06e0581ff0bfb15e94ed76"; + sha256 = "sha256-mbGLKOxBTvm2BN2u0IGC5IakAEhvMcpW9h1Tfu0dF88="; }; nativeBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ]; No auto update branch exists Old version 0.12.0.post2" not present in staging derivation file with contents: { lib , stdenv , buildPythonPackage , fetchPypi , xcbuild , cython , libusb1 , udev , darwin }: buildPythonPackage rec { pname = "hidapi"; version = "0.13.1"; src = fetchPypi { inherit pname version; sha256 = "99b18b28ec414ef9b604ddaed08182e486a400486f31ca56f61d537eed1d17cf"; }; nativeBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ]; propagatedBuildInputs = [ cython ] ++ lib.optionals stdenv.isLinux [ libusb1 udev ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]); # Fix the USB backend library lookup postPatch = lib.optionalString stdenv.isLinux '' libusb=${libusb1.dev}/include/libusb-1.0 test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; } sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py ''; pythonImportsCheck = [ "hid" ]; meta = with lib; { description = "A Cython interface to the hidapi from https://github.com/libusb/hidapi"; homepage = "https://github.com/trezor/cython-hidapi"; # license can actually be either bsd3 or gpl3 # see https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt license = with licenses; [ bsd3 gpl3Only ]; maintainers = with maintainers; [ np prusnak ]; }; }