summary refs log tree commit diff
path: root/pkgs/development/python-modules/regex
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-03-13 23:04:18 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-03-13 23:04:18 +0200
commit2fec9c6e297e02718db6be53d645524f0052a7bc (patch)
tree93e73a98dfaa40b290a6e15cf7f61054e5dc59e0 /pkgs/development/python-modules/regex
parente9961bf9a9f7410c2891c7e86c21ed6388c70d78 (diff)
parentba816ee08721d0c2f5f7e6652091bed085ac7687 (diff)
downloadnixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.tar
nixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.tar.gz
nixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.tar.bz2
nixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.tar.lz
nixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.tar.xz
nixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.tar.zst
nixlib-2fec9c6e297e02718db6be53d645524f0052a7bc.zip
Merge remote-tracking branch 'upstream/master' into staging
Conflicts:
	pkgs/development/tools/build-managers/conan/default.nix
Diffstat (limited to 'pkgs/development/python-modules/regex')
-rw-r--r--pkgs/development/python-modules/regex/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/regex/default.nix b/pkgs/development/python-modules/regex/default.nix
index 6c7e2be8886e..234088d1f519 100644
--- a/pkgs/development/python-modules/regex/default.nix
+++ b/pkgs/development/python-modules/regex/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, python
 }:
 
 
@@ -13,11 +14,15 @@ buildPythonPackage rec {
     sha256 = "b44624a38d07d3c954c84ad302c29f7930f4bf01443beef5589e9157b14e2a29";
   };
 
+  postCheck = ''
+    echo "We now run tests ourselves, since the setuptools installer doesn't."
+    ${python.interpreter} -c 'import test_regex; test_regex.test_main();'
+  '';
+
   meta = {
     description = "Alternative regular expression module, to replace re";
     homepage = https://bitbucket.org/mrabarnett/mrab-regex;
     license = lib.licenses.psfl;
-    platforms = lib.platforms.linux;
     maintainers = with lib.maintainers; [ abbradar ];
   };
 }