pythonPackages.rply: enable tests

This commit is contained in:
Jörg Thalheim 2017-11-01 05:14:33 -05:00
parent 6743ff2379
commit 09bdae2dd7

View File

@ -1,17 +1,24 @@
{ stdenv, fetchurl, buildPythonPackage, appdirs }: { stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "rply"; pname = "rply";
name = "${pname}-${version}"; name = "${pname}-${version}";
version = "0.7.5"; version = "0.7.5";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://pypi/r/rply/${name}.tar.gz"; owner = "alex";
sha256 = "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"; repo = "rply";
rev = "v${version}";
sha256 = "0v05gdy5dval30wvz96lywvz2jyf000dp0pnrd1lwdx3cyywq659";
}; };
buildInputs = [ appdirs ]; buildInputs = [ appdirs ];
checkInputs = [ pytest ];
checkPhase = ''
HOME=$(mktemp -d) py.test tests
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A python Lex/Yacc that works with RPython"; description = "A python Lex/Yacc that works with RPython";
homepage = https://github.com/alex/rply; homepage = https://github.com/alex/rply;