瀏覽代碼

Use checkPhase instead of setuptools' test_suite

Joeri Exelmans 2 年之前
父節點
當前提交
f70fd0311b
共有 2 個文件被更改,包括 3 次插入6 次删除
  1. 3 1
      default.nix
  2. 0 5
      setup.py

+ 3 - 1
default.nix

@@ -6,5 +6,7 @@ pkgs.python3Packages.buildPythonPackage rec {
 
   src = ./.; # location of setup.py
 
-  # propagatedBuildInputs = [];
+  checkPhase = ''
+    ${pkgs.python3}/bin/python -m unittest test.run_tests
+  '';
 }

+ 0 - 5
setup.py

@@ -10,9 +10,4 @@ setup(
 
     package_dir={"":"."},
     packages=["drawio2py"],
-
-    # include_package_data=True,
-    # package_data={"drawio2py": ["template.oml"]},
-
-    test_suite="test.run_tests"
 )