Skip to content

Commit

Permalink
pythonPackages.regex: fix darwin build
Browse files Browse the repository at this point in the history
The package works fine on darwin. We run some tests to prove this.
  • Loading branch information
knedlsepp committed Mar 10, 2018
1 parent 5c25232 commit d289736
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/python-modules/regex/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
}:


Expand All @@ -13,11 +14,15 @@ buildPythonPackage rec {
sha256 = "2353c0e983c4029caf32016f1dddef623c3117ac282a818468c6d2f5d541698d";
};

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 ];
};
}

0 comments on commit d289736

Please sign in to comment.