depot/third_party/nixpkgs/pkgs/development/python-modules/rply/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

40 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 = "A python Lex/Yacc that works with RPython";
homepage = "https://github.com/alex/rply";
license = licenses.bsd3;
maintainers = with maintainers; [ nixy ];
};
}