git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.yappi: 1.2.5 -> 1.3.0
commitce89dd6819805b5dfdcbdadb1b896680af7e30b6 authorJamie Magee <jamie.magee@gmail.com> dateSun 18 Oct 2020, 23:25 (6 years ago) parent2539542
2 files changed+19−13
pkgs/development/python-modules/yappi/default.nix+11−7 pkgs/development/python-modules/yappi/tests.patch+8−6
pkgs/development/python-modules/yappi/default.nix+11−7
@@ -1,18 +1,22 @@
1−{ lib, buildPythonPackage, fetchPypi, isPy27, nose }:
1+{ lib, buildPythonPackage, fetchFromGitHub, gevent, isPy27, python }:
22
33buildPythonPackage rec {
44 pname = "yappi";
5− version = "1.2.5";
5+ version = "1.3.0";
66 disabled = isPy27; # invalid syntax
77
8− src = fetchPypi {
9− inherit pname version;
10− sha256 = "ad5fa4caf2859e480ffc4ec3e85615a6f7dea852c8f035f2db723f824ed4ba11";
8+ src = fetchFromGitHub {
9+ owner = "sumerc";
10+ repo = pname;
11+ rev = "30f94024a0e2e4fa21c220de6a0dc97b4cb2c319";
12+ sha256 = "1kvwl3y3c2hivf9y2x1q1s8a2y724iwqd1krq6ryvsbg3inyh8qw";
1113 };
1214
1315 patches = [ ./tests.patch ];
14−
15− checkInputs = [ nose ];
16+ checkInputs = [ gevent ];
17+ checkPhase = ''
18+ ${python.interpreter} run_tests.py
19+ '';
1620
1721 meta = with lib; {
1822 homepage = "https://github.com/sumerc/yappi";
pkgs/development/python-modules/yappi/tests.patch+8−6
@@ -1,12 +1,14 @@
11--- a/tests/test_functionality.py
22+++ b/tests/test_functionality.py
3−@@ -74,2 +74,3 @@ class BasicUsage(utils.YappiUnitTestCase):
4−
5−+ @_unittest.skip('wall-clock-time-sensitive')
6− def test_get_clock(self):
3+@@ -262,1 +262,2 @@ class BasicUsage(utils.YappiUnitTestCase):
4++ @unittest.skip('wall-clock-time-sensitive')
5+ def test_get_clock(self):
6+@@ -363,2 +363,3 @@ class BasicUsage(utils.YappiUnitTestCase):
7+ @unittest.skipIf(os.name == "nt", "do not run on Windows")
8++ @unittest.skip('broken-path')
9+ def test_run_as_script(self):
710--- a/tests/test_hooks.py
811+++ b/tests/test_hooks.py
9−@@ -124,2 +124,3 @@ class ContextIdCallbackTest(utils.YappiUnitTestCase):
10−
12+@@ -127,1 +127,2 @@ class ContextIdCallbackTest(utils.YappiUnitTestCase):
1113+ @unittest.skip('wall-clock-time-sensitive')
1214 def test_pause_resume(self):