mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
28 lines
644 B
Nix
28 lines
644 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 ];
|
|
};
|
|
}
|