2017-11-01 10:14:33 +00:00
|
|
|
{ stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
|
2017-11-01 09:49:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rply";
|
2019-03-11 21:29:35 +00:00
|
|
|
version = "0.7.7";
|
2017-11-01 09:49:01 +00:00
|
|
|
|
2017-11-01 10:14:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alex";
|
|
|
|
repo = "rply";
|
|
|
|
rev = "v${version}";
|
2019-03-11 21:29:35 +00:00
|
|
|
sha256 = "1qv37hn7hhxd388znri76g0zjxsbwhxhcaic94dvw9pq4l60vqp6";
|
2017-11-01 09:49:01 +00:00
|
|
|
};
|
|
|
|
|
2019-03-15 16:13:17 +00:00
|
|
|
propagatedBuildInputs = [ appdirs ];
|
2017-11-01 09:49:01 +00:00
|
|
|
|
2017-11-01 10:14:33 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) py.test tests
|
|
|
|
'';
|
|
|
|
|
2017-11-01 09:49:01 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A python Lex/Yacc that works with RPython";
|
|
|
|
homepage = https://github.com/alex/rply;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nixy ];
|
|
|
|
};
|
|
|
|
}
|