depot/third_party/nixpkgs/pkgs/development/python-modules/rply/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
646 B
Nix

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