diff --git a/pkgs/development/python-modules/rply/default.nix b/pkgs/development/python-modules/rply/default.nix index 91f802912143..912b3fd6ab06 100644 --- a/pkgs/development/python-modules/rply/default.nix +++ b/pkgs/development/python-modules/rply/default.nix @@ -1,17 +1,24 @@ -{ stdenv, fetchurl, buildPythonPackage, appdirs }: +{ stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }: buildPythonPackage rec { pname = "rply"; name = "${pname}-${version}"; version = "0.7.5"; - src = fetchurl { - url = "mirror://pypi/r/rply/${name}.tar.gz"; - sha256 = "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"; + src = fetchFromGitHub { + owner = "alex"; + repo = "rply"; + rev = "v${version}"; + sha256 = "0v05gdy5dval30wvz96lywvz2jyf000dp0pnrd1lwdx3cyywq659"; }; buildInputs = [ 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;