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
45
pkgs/development/python-modules/yappi/default.nix
Normal file
45
pkgs/development/python-modules/yappi/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, gevent
|
||||
, python
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yappi";
|
||||
version = "1.3.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sumerc";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-XxUAYrDQAY7fD9yTSmoRUmWJEs+L6KSQ0/bIVf/o9ag=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./tests.patch
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
gevent
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} run_tests.py
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"yappi"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python profiler that supports multithreading and measuring CPU time";
|
||||
homepage = "https://github.com/sumerc/yappi";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ orivej ];
|
||||
};
|
||||
}
|
||||
14
pkgs/development/python-modules/yappi/tests.patch
Normal file
14
pkgs/development/python-modules/yappi/tests.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
--- a/tests/test_functionality.py
|
||||
+++ b/tests/test_functionality.py
|
||||
@@ -262,1 +262,2 @@ class BasicUsage(utils.YappiUnitTestCase):
|
||||
+ @unittest.skip('wall-clock-time-sensitive')
|
||||
def test_get_clock(self):
|
||||
@@ -363,2 +363,3 @@ class BasicUsage(utils.YappiUnitTestCase):
|
||||
@unittest.skipIf(os.name == "nt", "do not run on Windows")
|
||||
+ @unittest.skip('broken-path')
|
||||
def test_run_as_script(self):
|
||||
--- a/tests/test_hooks.py
|
||||
+++ b/tests/test_hooks.py
|
||||
@@ -127,1 +127,2 @@ class ContextIdCallbackTest(utils.YappiUnitTestCase):
|
||||
+ @unittest.skip('wall-clock-time-sensitive')
|
||||
def test_pause_resume(self):
|
||||
Loading…
Add table
Add a link
Reference in a new issue