summary refs log tree commit diff
path: root/pkgs/development/python-modules/worldengine
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-09 23:30:26 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-11 12:11:39 +0100
commit0a79e76ab5dbfcbae0eb2945fa72391168f20d0a (patch)
tree1cf13112a16465a8a6e443c060aec4336cb7f247 /pkgs/development/python-modules/worldengine
parente6925c9348b8258cfd21968cf1f6a484c58e9bd4 (diff)
downloadnixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.tar
nixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.tar.gz
nixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.tar.bz2
nixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.tar.lz
nixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.tar.xz
nixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.tar.zst
nixpkgs-0a79e76ab5dbfcbae0eb2945fa72391168f20d0a.zip
pythonPackages.worldengine: Cleanups, fix tests
Diffstat (limited to 'pkgs/development/python-modules/worldengine')
-rw-r--r--pkgs/development/python-modules/worldengine/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/worldengine/default.nix b/pkgs/development/python-modules/worldengine/default.nix
index fb7326c81d5..51c0de77917 100644
--- a/pkgs/development/python-modules/worldengine/default.nix
+++ b/pkgs/development/python-modules/worldengine/default.nix
@@ -3,7 +3,6 @@
 , pythonOlder
 , isPy27
 , fetchFromGitHub
-, nose
 , noise
 , numpy
 , pyplatec
@@ -11,6 +10,7 @@
 , purepng
 , h5py
 , gdal
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
@@ -47,13 +47,12 @@ buildPythonPackage rec {
       --replace 'PyPlatec==1.4.0' 'PyPlatec' \
   '';
 
-  # with python<3.5, unittest fails to discover tests because of their filenames
-  # so nose is used instead.
   doCheck = !isPy27; # google namespace clash
-  checkInputs = stdenv.lib.optional (pythonOlder "3.5") [ nose ];
-  postCheck = stdenv.lib.optionalString (pythonOlder "3.5") ''
-    nosetests tests
-  '';
+  checkInputs = [ pytestCheckHook ];
+
+  disabledTests = [
+    "TestSerialization"
+  ];
 
   meta = with lib; {
     homepage = "http://world-engine.org";