1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5}: 6 7 8buildPythonPackage rec { 9 pname = "regex"; 10 version = "2018.08.29"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "b73cea07117dca888b0c3671770b501bef19aac9c45c8ffdb5bea2cca2377b0a"; 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 meta = { 23 description = "Alternative regular expression module, to replace re"; 24 homepage = https://bitbucket.org/mrabarnett/mrab-regex; 25 license = lib.licenses.psfl; 26 maintainers = with lib.maintainers; [ abbradar ]; 27 }; 28}