Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.rply: enable tests

+11 -4
+11 -4
pkgs/development/python-modules/rply/default.nix
··· 1 - { stdenv, fetchurl, buildPythonPackage, appdirs }: 1 + { stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "rply"; 5 5 name = "${pname}-${version}"; 6 6 version = "0.7.5"; 7 7 8 - src = fetchurl { 9 - url = "mirror://pypi/r/rply/${name}.tar.gz"; 10 - sha256 = "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"; 8 + src = fetchFromGitHub { 9 + owner = "alex"; 10 + repo = "rply"; 11 + rev = "v${version}"; 12 + sha256 = "0v05gdy5dval30wvz96lywvz2jyf000dp0pnrd1lwdx3cyywq659"; 11 13 }; 12 14 13 15 buildInputs = [ appdirs ]; 16 + 17 + checkInputs = [ pytest ]; 18 + checkPhase = '' 19 + HOME=$(mktemp -d) py.test tests 20 + ''; 14 21 15 22 meta = with stdenv.lib; { 16 23 description = "A python Lex/Yacc that works with RPython";