diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-23 16:49:06 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2021-06-21 16:48:36 -0700 |
commit | 556bf69c40ac2f769e4e08b55f352a911b7b7386 (patch) | |
tree | 6b84c6e14ad3119403dd6b11702cd20ed118ee87 /pkgs/development/python-modules/regex | |
parent | d3db53a74180942e54cec45d5cd76e3b9a30494a (diff) | |
download | nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.tar nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.tar.gz nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.tar.bz2 nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.tar.lz nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.tar.xz nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.tar.zst nixpkgs-556bf69c40ac2f769e4e08b55f352a911b7b7386.zip |
python3Packages.regex: enable tests
Diffstat (limited to 'pkgs/development/python-modules/regex')
-rw-r--r-- | pkgs/development/python-modules/regex/default.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/regex/default.nix b/pkgs/development/python-modules/regex/default.nix index 2d4a6e18f95..0445b02c1f3 100644 --- a/pkgs/development/python-modules/regex/default.nix +++ b/pkgs/development/python-modules/regex/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , python +, isPy27 }: buildPythonPackage rec { @@ -13,14 +14,12 @@ buildPythonPackage rec { sha256 = "sha256-Uro9P5uULEnX5LwQW7KFUcRAZfE5plBiq3kSvvEMmvs="; }; - postCheck = '' - echo "We now run tests ourselves, since the setuptools installer doesn't." - ${python.interpreter} -c 'import test_regex; test_regex.test_main();' + # Sources for different Python releases are located in same folder + checkPhase = '' + rm -r ${if !isPy27 then "regex_2" else "regex_3"} + ${python.interpreter} -m unittest ''; - # No tests in archive - doCheck = false; - pythonImportsCheck = [ "regex" ]; meta = with lib; { |