diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python2-modules/typing/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python2-modules/typing/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/python2-modules/typing/default.nix b/nixpkgs/pkgs/development/python2-modules/typing/default.nix index b3dcea203231..b8c143cbd537 100644 --- a/nixpkgs/pkgs/development/python2-modules/typing/default.nix +++ b/nixpkgs/pkgs/development/python2-modules/typing/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, isPyPy, python +{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, isPyPy, unittestCheckHook , pythonAtLeast }: let @@ -20,10 +20,9 @@ in buildPythonPackage rec { # Also, don't bother on PyPy: AssertionError: TypeError not raised doCheck = pythonOlder "3.6" && !isPyPy; - checkPhase = '' - cd ${testDir} - ${python.interpreter} -m unittest discover - ''; + nativeCheckInputs = [ unittestCheckHook ]; + + unittestFlagsArray = [ "-s" testDir ]; meta = with lib; { description = "Backport of typing module to Python versions older than 3.5"; |