nixpkgs/pkgs/development/python-modules/regex/default.nix
2018-08-25 18:07:16 +02:00

29 lines
674 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "regex";
version = "2018.08.17";
src = fetchPypi {
inherit pname version;
sha256 = "56494baf1ed525deea426d3676b1ae3fdcc906b55eccfcb4ea928453e11f2a43";
};
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 ];
};
}