1818 pep425 = pkgs . callPackage ../pep425.nix { inherit poetryLib ; python = pkgs . python3 ; } ;
1919 pep425PythonOldest = pkgs . callPackage ../pep425.nix { inherit poetryLib ; python = pkgs . python38 ; } ;
2020 pep425OSX = pkgs . callPackage ../pep425.nix { inherit poetryLib ; isLinux = false ; python = pkgs . python3 ; } ;
21- skipTests = builtins . filter ( t : builtins . typeOf t != "list" ) ( builtins . split "," ( builtins . getEnv "SKIP_TESTS" ) ) ;
2221 callTest = test : attrs : pkgs . callPackage test ( { inherit poetry2nix ; } // attrs ) ;
2322
24- # HACK: Return null on MacOS since the test in question fails
25- skipOSX = drv : if pkgs . stdenv . isDarwin then builtins . trace "Note: Skipping ${ drv . name } on OSX" ( pkgs . runCommand drv . name { } "touch $out" ) else drv ;
23+ inherit ( pkgs ) lib stdenv ;
2624
2725in
28- builtins . removeAttrs
2926{
3027 trivial = callTest ./trivial { } ;
3128
@@ -39,7 +36,6 @@ builtins.removeAttrs
3936 common-pkgs-1 = callTest ./common-pkgs-1 { } ;
4037 common-pkgs-2 = callTest ./common-pkgs-2 { } ;
4138 pep425 = pkgs . callPackage ./pep425 { inherit pep425 ; inherit pep425OSX ; inherit pep425PythonOldest ; } ;
42- pep600 = skipOSX ( callTest ./pep600 { } ) ;
4339 env = callTest ./env { } ;
4440 pytest-metadata = callTest ./pytest-metadata { } ;
4541 pytest-randomly = callTest ./pytest-randomly { } ;
@@ -62,25 +58,16 @@ builtins.removeAttrs
6258 inherit poetry ;
6359 inherit ( pkgs ) postgresql ;
6460 } ;
65- # pyqt5 = skipOSX (callTest ./pyqt5 { });
6661 extras = callTest ./extras { } ;
6762 source-filter = callTest ./source-filter { } ;
6863 canonical-module-names = callTest ./canonical-module-names { } ;
6964 wandb = callTest ./wandb { } ;
7065 utf8-pyproject = callTest ./utf8-pyproject { } ;
7166
72- # Test deadlocks on darwin, sandboxing issue?
73- dependency-environment = skipOSX ( callTest ./dependency-environment { } ) ;
74-
75- # Editable tests fails on Darwin because of sandbox paths
76- editable = skipOSX ( callTest ./editable { } ) ;
77- editable-egg = skipOSX ( callTest ./editable-egg { } ) ;
78-
7967 ansible-molecule = callTest ./ansible-molecule { } ;
8068 bcrypt = callTest ./bcrypt { } ;
8169 mk-poetry-packages = callTest ./mk-poetry-packages { } ;
8270 markupsafe2 = callTest ./markupsafe2 { } ;
83- pendulum = skipOSX ( callTest ./pendulum { } ) ;
8471 # uwsgi = callTest ./uwsgi { }; # Commented out because build is flaky (unrelated to poetry2nix)
8572 jq = callTest ./jq { } ;
8673 ubersmith = callTest ./ubersmith { } ;
@@ -94,12 +81,6 @@ builtins.removeAttrs
9481 watchfiles = callTest ./watchfiles { } ;
9582 sqlalchemy = callTest ./sqlalchemy { } ;
9683 tzlocal = callTest ./tzlocal { } ;
97- text-generation-webui = skipOSX ( callTest ./text-generation-webui { } ) ;
98-
99- # Cross tests fail on darwin for some strange reason:
100- # ERROR: MarkupSafe-2.0.1-cp39-cp39-linux_aarch64.whl is not a supported wheel on this platform.
101- extended-cross = skipOSX ( callTest ./extended-cross { } ) ;
102- trivial-cross = skipOSX ( callTest ./trivial-cross { } ) ;
10384
10485 ml-stack = callTest ./ml-stack { } ;
10586
@@ -171,11 +152,23 @@ builtins.removeAttrs
171152 cairocffi-no-wheel = callTest ./cairocffi-no-wheel { } ;
172153 rpds-py = callTest ./rpds-py { } ;
173154
174- # Currently broken
175- # pandas = callTest ./pandas { };
176- # Inherit test cases from nixpkgs
177- # nixops = pkgs.nixops;
178- nixops_unstable = skipOSX pkgs . nixops_unstable ;
155+ } // lib . optionalAttrs ( ! stdenv . isDarwin ) {
156+ # pyqt5 = (callTest ./pyqt5 { });
179157
158+ # Test deadlocks on darwin, sandboxing issue?
159+ dependency-environment = ( callTest ./dependency-environment { } ) ;
160+
161+ # Editable tests fails on Darwin because of sandbox paths
162+ pep600 = ( callTest ./pep600 { } ) ;
163+ editable = ( callTest ./editable { } ) ;
164+ editable-egg = ( callTest ./editable-egg { } ) ;
165+ pendulum = ( callTest ./pendulum { } ) ;
166+
167+ # Fails because of missing inputs on darwin
168+ text-generation-webui = callTest ./text-generation-webui { } ;
169+
170+ # Cross tests fail on darwin for some strange reason:
171+ # ERROR: MarkupSafe-2.0.1-cp39-cp39-linux_aarch64.whl is not a supported wheel on this platform.
172+ extended-cross = ( callTest ./extended-cross { } ) ;
173+ trivial-cross = ( callTest ./trivial-cross { } ) ;
180174}
181- skipTests
0 commit comments