1{ stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
2
3buildPythonPackage rec {
4 pname = "rply";
5 version = "0.7.6";
6
7 src = fetchFromGitHub {
8 owner = "alex";
9 repo = "rply";
10 rev = "v${version}";
11 sha256 = "0a9r81kaibgr26psss02rn2nc6bf84a8q9nsywkm1xcswy8xrmcx";
12 };
13
14 buildInputs = [ appdirs ];
15
16 checkInputs = [ pytest ];
17 checkPhase = ''
18 HOME=$(mktemp -d) py.test tests
19 '';
20
21 meta = with stdenv.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}