python: yappi: init at 1.0

This commit is contained in:
Orivej Desh 2019-07-14 00:08:18 +00:00
parent abfe2572e8
commit 27b7e11e7f
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, nose }:
buildPythonPackage rec {
pname = "yappi";
version = "1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1gs48c5sy771lsjhca3m4j8ljc6yhk5qnim3n5idnlaxa4ql30bz";
};
patches = [ ./tests.patch ];
checkInputs = [ nose ];
meta = with lib; {
homepage = https://github.com/sumerc/yappi;
description = "Python profiler that supports multithreading and measuring CPU time";
license = licenses.mit;
maintainers = with maintainers; [ orivej ];
};
}

View File

@ -0,0 +1,12 @@
--- a/tests/test_functionality.py
+++ b/tests/test_functionality.py
@@ -74,2 +74,3 @@ class BasicUsage(utils.YappiUnitTestCase):
+ @_unittest.skip('wall-clock-time-sensitive')
def test_get_clock(self):
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -124,2 +124,3 @@ class ContextIdCallbackTest(utils.YappiUnitTestCase):
+ @unittest.skip('wall-clock-time-sensitive')
def test_pause_resume(self):

View File

@ -5004,6 +5004,8 @@ in {
xlib = callPackage ../development/python-modules/xlib { };
yappi = callPackage ../development/python-modules/yappi { };
zbase32 = callPackage ../development/python-modules/zbase32 { };
zdaemon = callPackage ../development/python-modules/zdaemon { };