uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
55
pkgs/development/python-modules/psutil/default.nix
Normal file
55
pkgs/development/python-modules/psutil/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, python
|
||||
, darwin
|
||||
, pytestCheckHook
|
||||
, mock
|
||||
, ipaddress
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "psutil";
|
||||
version = "5.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25";
|
||||
};
|
||||
|
||||
# We have many test failures on various parts of the package:
|
||||
# - segfaults on darwin:
|
||||
# https://github.com/giampaolo/psutil/issues/1715
|
||||
# - swap (on linux) might cause test failures if it is fully used:
|
||||
# https://github.com/giampaolo/psutil/issues/1911
|
||||
# - some mount paths are required in the build sanbox to make the tests succeed:
|
||||
# https://github.com/giampaolo/psutil/issues/1912
|
||||
doCheck = false;
|
||||
checkInputs = [ pytestCheckHook ]
|
||||
++ lib.optionals isPy27 [ mock ipaddress unittest2 ];
|
||||
# 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 sanboxing (missing specific errors)
|
||||
pytestFlagsArray = [
|
||||
"$out/${python.sitePackages}/psutil/tests/test_system.py"
|
||||
];
|
||||
|
||||
# Note: $out must be referenced as test import paths are relative
|
||||
disabledTests = [
|
||||
"user"
|
||||
"disk_io_counters"
|
||||
"sensors_battery"
|
||||
"cpu_times"
|
||||
"cpu_freq"
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ darwin.IOKit ];
|
||||
|
||||
pythonImportsCheck = [ "psutil" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Process and system utilization information interface for python";
|
||||
homepage = "https://github.com/giampaolo/psutil";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue