1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5}:
6
7
8buildPythonPackage rec {
9 pname = "regex";
10 version = "2021.3.17";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "4b8a1fb724904139149a43e172850f35aa6ea97fb0545244dc0b805e0154ed68";
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}