2017-11-01 11:14:33 +01:00
|
|
|
{ stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
|
2017-11-01 10:49:01 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rply";
|
2018-10-24 07:54:54 +02:00
|
|
|
version = "0.7.6";
|
2017-11-01 10:49:01 +01:00
|
|
|
|
2017-11-01 11:14:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alex";
|
|
|
|
repo = "rply";
|
|
|
|
rev = "v${version}";
|
2018-10-24 07:54:54 +02:00
|
|
|
sha256 = "0a9r81kaibgr26psss02rn2nc6bf84a8q9nsywkm1xcswy8xrmcx";
|
2017-11-01 10:49:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ appdirs ];
|
|
|
|
|
2017-11-01 11:14:33 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$(mktemp -d) py.test tests
|
|
|
|
'';
|
|
|
|
|
2017-11-01 10:49:01 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|