Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: python3Packages.psutil 0 -> 1 attrpath: python3Packages.psutil Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/h7q9yw5gd2zxjn2rvjaad587bhkclkgc-packages.json.drv building '/nix/store/h7q9yw5gd2zxjn2rvjaad587bhkclkgc-packages.json.drv'... Going to be running update for following packages: - python3.13-psutil-7.1.3 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - python3.13-psutil-7.1.3: UPDATING ... - python3.13-psutil-7.1.3: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/psutil/default.nix b/pkgs/development/python-modules/psutil/default.nix index 8a60fac56e20..e4e2d84dc7b8 100644 --- a/pkgs/development/python-modules/psutil/default.nix +++ b/pkgs/development/python-modules/psutil/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "psutil"; - version = "7.1.3"; + version = "7.2.2"; pyproject = true; src = fetchFromGitHub { owner = "giampaolo"; repo = "psutil"; tag = "release-${version}"; - hash = "sha256-vMGUoiPr+QIe1N+I++d/DM9i2jeHTI68npGoJ2vKF10="; + hash = "sha256-plBv24QgNzmVMV2lFxCbNwHKtd620thJayWdjs4estw="; }; postPatch = '' No auto update branch exists Old version 7.1.3" not present in staging derivation file with contents: { lib, stdenv, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook, pytest-instafail, pytest-xdist, gitUpdater, }: buildPythonPackage rec { pname = "psutil"; version = "7.2.1"; pyproject = true; src = fetchFromGitHub { owner = "giampaolo"; repo = "psutil"; tag = "release-${version}"; hash = "sha256-HGIFf7E356o0OcgLOPjACmrPXneQt/8IhzyudKKuLdg="; }; postPatch = '' # stick to the old SDK name for now # https://developer.apple.com/documentation/iokit/kiomasterportdefault/ # https://developer.apple.com/documentation/iokit/kiomainportdefault/ substituteInPlace psutil/arch/osx/cpu.c \ --replace-fail kIOMainPortDefault kIOMasterPortDefault ''; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook pytest-instafail pytest-xdist ]; # Segfaults on darwin: # https://github.com/giampaolo/psutil/issues/1715 doCheck = !stdenv.hostPlatform.isDarwin; # In addition to the issues listed above there are some that occure due to # our sandboxing which we can work around by disabling some tests: # - cpu_times was flaky on darwin # - the other disabled tests are likely due to sandboxing (missing specific errors) enabledTestPaths = [ # Note: $out must be referenced as test import paths are relative "tests/test_system.py" ]; disabledTests = [ # Some of the tests have build-system hardware-based impurities (like # reading temperature sensor values). Disable them to avoid the failures # that sometimes result. "cpu_freq" "cpu_times" "disk_io_counters" "sensors_battery" "sensors_temperatures" "user" "test_disk_partitions" # problematic on Hydra's Linux builders, apparently ]; preCheck = '' rm -rf psutil ''; pythonImportsCheck = [ "psutil" ]; passthru.updateScript = gitUpdater { rev-prefix = "release-"; }; meta = { description = "Process and system utilization information interface"; homepage = "https://github.com/giampaolo/psutil"; changelog = "https://github.com/giampaolo/psutil/blob/${src.tag}/HISTORY.rst"; license = lib.licenses.bsd3; maintainers = [ ]; }; }