mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
python: yappi: init at 1.0
This commit is contained in:
parent
abfe2572e8
commit
27b7e11e7f
22
pkgs/development/python-modules/yappi/default.nix
Normal file
22
pkgs/development/python-modules/yappi/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
12
pkgs/development/python-modules/yappi/tests.patch
Normal file
12
pkgs/development/python-modules/yappi/tests.patch
Normal 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):
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user