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