depot/third_party/nixpkgs/pkgs/development/python-modules/rply/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
702 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
appdirs,
py,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "rply";
version = "0.7.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "alex";
repo = "rply";
rev = "v${version}";
hash = "sha256-5uINDCX4Jr4bSSwqBjvkS3f5wTMnZvsRGq1DeCw8Y+M=";
};
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 ];
};
}