1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "regex";
10 version = "2022.9.13";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-8HNztuVqbzoN89dbZRonjKe9NXp5YHiiapWOoc4FiP0=";
18 };
19
20 checkPhase = ''
21 ${python.interpreter} -m unittest
22 '';
23
24 pythonImportsCheck = [
25 "regex"
26 ];
27
28 meta = with lib; {
29 description = "Alternative regular expression module, to replace re";
30 homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
31 license = licenses.psfl;
32 maintainers = with maintainers; [ abbradar ];
33 };
34}