depot/third_party/nixpkgs/pkgs/development/python-modules/rply/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

27 lines
636 B
Nix

{ lib, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
buildPythonPackage rec {
pname = "rply";
version = "0.7.7";
src = fetchFromGitHub {
owner = "alex";
repo = "rply";
rev = "v${version}";
sha256 = "1qv37hn7hhxd388znri76g0zjxsbwhxhcaic94dvw9pq4l60vqp6";
};
propagatedBuildInputs = [ appdirs ];
checkInputs = [ pytest ];
checkPhase = ''
HOME=$(mktemp -d) py.test tests
'';
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 ];
};
}