forked from mirrors/nixpkgs
29 lines
674 B
Nix
29 lines
674 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regex";
|
|
version = "2018.06.09";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0201b4cb42f03842a75044a3d08b62a79114f753b33ee421182c631d9f5c81f5";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|