File tree Expand file tree Collapse file tree 4 files changed +28
-16
lines changed Expand file tree Collapse file tree 4 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
3- buildPythonPackage ,
43 fetchFromGitHub ,
5- setuptools ,
6- nbformat ,
7- nose ,
4+ python3Packages ,
85} :
96
10- buildPythonPackage rec {
7+ python3Packages . buildPythonApplication rec {
118 pname = "nbmerge" ;
129 version = "0.0.4" ;
1310 pyproject = true ;
1411
1512 src = fetchFromGitHub {
1613 owner = "jbn" ;
17- repo = pname ;
14+ repo = "nbmerge" ;
1815 rev = "refs/tags/v${ version } " ;
1916 hash = "sha256-Uqs/SO/AculHCFYcbjW08kLQX5GSU/eAwkN2iy/vhLM=" ;
2017 } ;
2118
22- nativeBuildInputs = [ setuptools ] ;
19+ patches = [ ./pytest-compatibility.patch ] ;
2320
24- propagatedBuildInputs = [ nbformat ] ;
21+ build-system = [ python3Packages . setuptools ] ;
2522
26- nativeCheckInputs = [ nose ] ;
23+ dependencies = [ python3Packages . nbformat ] ;
2724
28- checkPhase = ''
29- runHook preCheck
25+ nativeCheckInputs = [ python3Packages . pytestCheckHook ] ;
3026
27+ postCheck = ''
3128 patchShebangs .
32- nosetests -v
3329 PATH=$PATH:$out/bin ./cli_tests.sh
34-
35- runHook postCheck
3630 '' ;
3731
3832 pythonImportsCheck = [ "nbmerge" ] ;
Original file line number Diff line number Diff line change 1+ diff --git a/tests/test_merge.py b/tests/test_merge.py
2+ index 06ee559..9d7b1af 100644
3+ --- a/tests/test_merge.py
4+ +++ b/tests/test_merge.py
5+ @@ -1,3 +1,4 @@
6+ + import io
7+ import os
8+ import sys
9+ import unittest
10+ @@ -21,8 +22,7 @@ def file_names_from(file_paths):
11+
12+ class TestMerge(unittest.TestCase):
13+ def setUp(self):
14+ - if not hasattr(sys.stdout, "getvalue"):
15+ - self.fail("need to run in buffered mode")
16+ + sys.stdout = io.StringIO()
17+
18+ def _validate_merged_three(self, merged):
19+ self.assertEqual(len(merged.cells), 6)
Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ mapAliases ({
314314 mrkd = throw "mrkd has been promoted to a top-level attribute name: `pkgs.mrkd`" ; # added 2023-08-01
315315 multi_key_dict = multi-key-dict ; # added 2023-11-05
316316 mutmut = throw "mutmut has been promoted to a top-level attribute name: `pkgs.mutmut`" ; # added 2022-10-02
317+ nbmerge = throw "nbmerge has moved to pkgs.nbmerge" ; # added 2024-07-05
317318 net2grid = gridnet ; # add 2022-04-22
318319 nghttp2 = throw "in 1.52.0 removed deprecated python bindings." ; # added 2023-06-08
319320 ninja-python = ninja ; # add 2022-08-03
Original file line number Diff line number Diff line change @@ -8835,8 +8835,6 @@ self: super: with self; {
88358835
88368836 nbmake = callPackage ../development/python-modules/nbmake { };
88378837
8838- nbmerge = callPackage ../development/python-modules/nbmerge { };
8839-
88408838 nbsmoke = callPackage ../development/python-modules/nbsmoke { };
88418839
88428840 nbsphinx = callPackage ../development/python-modules/nbsphinx { };
You can’t perform that action at this time.
0 commit comments