1{ stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
2
3buildPythonPackage rec {
4 pname = "rply";
5 name = "${pname}-${version}";
6 version = "0.7.5";
7
8 src = fetchFromGitHub {
9 owner = "alex";
10 repo = "rply";
11 rev = "v${version}";
12 sha256 = "0v05gdy5dval30wvz96lywvz2jyf000dp0pnrd1lwdx3cyywq659";
13 };
14
15 buildInputs = [ appdirs ];
16
17 checkInputs = [ pytest ];
18 checkPhase = ''
19 HOME=$(mktemp -d) py.test tests
20 '';
21
22 meta = with stdenv.lib; {
23 description = "A python Lex/Yacc that works with RPython";
24 homepage = https://github.com/alex/rply;
25 license = licenses.bsd3;
26 maintainers = with maintainers; [ nixy ];
27 };
28}