28 lines
674 B
Nix
28 lines
674 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regex";
|
|
version = "2018.11.07";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7bfb6e13ed8195513160550c3a82c49da8bbc6df5d149089cd37f51f36eddd39";
|
|
};
|
|
|
|
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;
|
|
maintainers = with lib.maintainers; [ abbradar ];
|
|
};
|
|
}
|