Commit Graph

28 Commits

Author SHA1 Message Date
Vladimír Čunát
82bccc2d62
Merge branch 'nixpkgs-unstable' into PR #111431
I'm not really sure about the conflicts in:
	pkgs/development/python-modules/psutil/default.nix

Hydra nixpkgs: ?compare=1666054
2021-04-28 17:13:34 +02:00
Dmitry Kalinkin
4f702f7e30
pythonPackages.psutil: disable impure cpu_freq test
Tries to reach into /sys/devices/system/cpu, which may fail on
non-NixOS.
2021-02-24 11:20:58 -05:00
Dmitry Kalinkin
ce9b57bc39
pythonPackages.psutils: use pytestCheckHook 2021-02-24 11:20:51 -05:00
Andreas Rammhold
16d7d40b8a
pythonPackages.psutil: disable tests due to test failures
Tests are very flaky and depend on the exact execution environment. It
is weird that it has gone well so far but started causing issues across
many of my builders.

Also started rewording some of the comments in the expression so
hopefully the next person looking at this has an easier time to
understand it.

On systems where swap is available and fully used tests fail like this:

>    def test_swap_memory(self):
>         mem = psutil.swap_memory()
>         self.assertEqual(
>             mem._fields, ('total', 'used', 'free', 'percent', 'sin', 'sout'))
>
>         assert mem.total >= 0, mem
>         assert mem.used >= 0, mem
>         if mem.total > 0:
>             # likely a system with no swap partition
> >           assert mem.free > 0, mem
> E           AssertionError: sswap(total=1048567808, used=1048567808, free=0, percent=100.0, sin=50741248, sout=1316823040)
> E           assert 0 > 0
> E            +  where 0 = sswap(total=1048567808, used=1048567808, free=0, percent=100.0, sin=50741248, sout=1316823040).free

Upstream bug report: https://github.com/giampaolo/psutil/issues/1911

Systems where /proc/mounts doesn't expose any mount points to build the
tests fail like this:

>     def test_disk_partitions(self):
>             self.assertIsInstance(nt.device, str)
>         def check_ntuple(nt):
>             self.assertIsInstance(nt.mountpoint, str)
>             self.assertIsInstance(nt.fstype, str)
>             self.assertIsInstance(nt.opts, str)
>             self.assertIsInstance(nt.maxfile, (int, type(None)))
>             self.assertIsInstance(nt.maxpath, (int, type(None)))
>                 self.assertGreater(nt.maxfile, 0)
>             if nt.maxfile is not None and not GITHUB_ACTIONS:
>             if nt.maxpath is not None:
>                 self.assertGreater(nt.maxpath, 0)
>
>         # all = False
>         ls = psutil.disk_partitions(all=False)
> >       self.assertTrue(ls, msg=ls)
> E       AssertionError: [] is not true : []

Upstream bug report: https://github.com/giampaolo/psutil/issues/1912
2021-01-31 20:30:58 +01:00
Fabian Affolter
1f405c9191 python3Packages.psutil: 5.7.3 -> 5.8.0 2020-12-30 14:10:28 -08:00
Frederik Rietdijk
0087a31886 python3Packages.psutil: 5.7.2 -> 5.7.3 2020-11-05 15:47:01 -08:00
Jonathan Ringer
ebaa9ba725
python3Packages.psutil: fix pytest expr 2020-08-16 12:53:08 -07:00
Frederik Rietdijk
fbe4ff30a2 python2.pkgs.psutil: fix build 2020-08-04 21:55:05 +02:00
Frederik Rietdijk
111ff5ebbe python: psutil: 5.7.0 -> 5.7.2 2020-08-04 21:54:51 +02:00
Simon Chatterjee
73f7453bfb pythonPackages.psutil: fix fix for darwin build
PR #82524 correctly diagnosed the problem, but slightly fluffed the boolean
logic (disable tests for Darwin as well as non-x86_64 arch).
2020-06-19 20:16:58 +01:00
Mario Rodas
b86030608b pythonPackages.psutil: fix build on darwin
Disable tests because it segfaults on darwin
2020-03-13 20:20:40 -07:00
Jonathan Ringer
0d1d43d49c pythonPackages.psutil: 5.6.7 -> 5.7.0 2020-02-23 14:01:08 -08:00
Frederik Rietdijk
0bf64a4c66 python: psutil: 5.6.5 -> 5.6.7 2019-12-15 16:23:15 +01:00
Frederik Rietdijk
088824c5b8 python: psutil: 5.6.3 -> 5.6.5 2019-11-12 14:57:20 +01:00
Frederik Rietdijk
f4667efdb3 python: psutil: 5.6.2 -> 5.6.3 2019-06-18 11:11:16 +02:00
Jonathan Ringer
f4c054b730 python.pkgs.psutil: 5.5.1 -> 5.6.2 2019-06-18 11:11:16 +02:00
Izorkin
55fc2d6375 pythonPackages.psutil: 5.4.8 -> 5.5.1 2019-02-24 10:17:36 +01:00
Izorkin
f14d6ab0f6 pythonPackage.psutil: fix disk io counters fails on Linux kernel 4.18+ 2019-01-01 13:36:53 +03:00
Frederik Rietdijk
d820918b6f python: psutil: 5.4.7 -> 5.4.8 2018-12-03 16:50:33 +01:00
Frederik Rietdijk
ecb7d5c7b3 python: psutil: 5.4.6 -> 5.4.7 2018-08-25 18:07:14 +02:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Frederik Rietdijk
ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00
Frederik Rietdijk
142e73161d python: psutil: 5.4.5 -> 5.4.6 2018-06-22 13:09:24 +02:00
Frederik Rietdijk
5287f27a8f python: psutil: 5.4.3 -> 5.4.5 2018-05-10 10:09:14 +02:00
Frederik Rietdijk
792b448b9b python: psutil: 5.4.2 -> 5.4.3 2018-01-07 09:47:13 +01:00
Frederik Rietdijk
73ea7b9c9a python: psutil: 5.4.1 -> 5.4.2 2017-12-31 10:55:11 +01:00
Frederik Rietdijk
6a3b92626e python.pkgs.psutil: 4.3.0 -> 5.4.1 2017-11-23 17:06:19 +01:00
Frederik Rietdijk
543136e863 python.pkgs.psutil: move to separate expression 2017-11-23 17:06:17 +01:00