159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
39 lines
702 B
Nix
39 lines
702 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
appdirs,
|
|
py,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rply";
|
|
version = "0.7.8";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alex";
|
|
repo = "rply";
|
|
rev = "v${version}";
|
|
hash = "sha256-mO/wcIsDIBjoxUsFvzftj5H5ziJijJcoyrUk52fcyE4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ appdirs ];
|
|
|
|
nativeCheckInputs = [
|
|
py
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python Lex/Yacc that works with RPython";
|
|
homepage = "https://github.com/alex/rply";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ nixy ];
|
|
};
|
|
}
|