1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 appdirs,
6 py,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rply";
12 version = "0.7.8";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "alex";
17 repo = "rply";
18 rev = "v${version}";
19 hash = "sha256-mO/wcIsDIBjoxUsFvzftj5H5ziJijJcoyrUk52fcyE4=";
20 };
21
22 propagatedBuildInputs = [ appdirs ];
23
24 nativeCheckInputs = [
25 py
26 pytestCheckHook
27 ];
28
29 preCheck = ''
30 export HOME=$(mktemp -d)
31 '';
32
33 meta = with lib; {
34 description = "Python Lex/Yacc that works with RPython";
35 homepage = "https://github.com/alex/rply";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ nixy ];
38 };
39}