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