mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:24:20 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
700 B
Nix
39 lines
700 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 = {
|
|
description = "Python Lex/Yacc that works with RPython";
|
|
homepage = "https://github.com/alex/rply";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ nixy ];
|
|
};
|
|
}
|