1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5}:
6
7
8buildPythonPackage rec {
9 pname = "regex";
10 version = "2020.7.14";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "3a3af27a8d23143c49a3420efe5b3f8cf1a48c6fc8bc6856b03f638abc1833bb";
15 };
16
17 postCheck = ''
18 echo "We now run tests ourselves, since the setuptools installer doesn't."
19 ${python.interpreter} -c 'import test_regex; test_regex.test_main();'
20 '';
21
22 # No tests in archive
23 doCheck = false;
24
25 meta = {
26 description = "Alternative regular expression module, to replace re";
27 homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
28 license = lib.licenses.psfl;
29 maintainers = with lib.maintainers; [ abbradar ];
30 };
31}