···11-{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder }:
11+{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder, pytest }:
22buildPythonPackage rec {
33 pname = "typed-ast";
44- version = "1.4.1";
55- src = fetchFromGitHub{
44+ version = "1.4.3";
55+ src = fetchFromGitHub {
66 owner = "python";
77 repo = "typed_ast";
88 rev = version;
99- sha256 = "086r9qhls6mz1w72a6d1ld3m4fbkxklf6mgwbs8wpw0zlxjm7y40";
99+ sha256 = "16mn9snwik5n2ib65sw2xcaqdm02j8ps21zgjxf8kyy7qnx2mx4w";
1010 };
1111 # Only works with Python 3.3 and newer;
1212 disabled = pythonOlder "3.3";
1313- # No tests in archive
1414- doCheck = false;
1313+1414+ pythonImportsCheck = [
1515+ "typed_ast"
1616+ "typed_ast.ast27"
1717+ "typed_ast.ast3"
1818+ "typed_ast.conversions"
1919+ ];
2020+2121+ checkInputs = [
2222+ pytest
2323+ ];
2424+ checkPhase = ''
2525+ runHook preCheck
2626+2727+ # We can't use pytestCheckHook because that invokes pytest with python -m pytest
2828+ # which adds the current directory to sys.path at the beginning.
2929+ # _That_ version of the typed_ast module doesn't have the C extensions we need.
3030+ pytest
3131+3232+ runHook postCheck
3333+ '';
3434+1535 meta = {
1616- homepage = "https://pypi.python.org/pypi/typed-ast";
1717- description = "a fork of Python 2 and 3 ast modules with type comment support";
3636+ homepage = "https://github.com/python/typed_ast";
3737+ description = "Python 2 and 3 ast modules with type comment support";
1838 license = lib.licenses.asl20;
1939 };
2040}
+1
pkgs/games/sauerbraten/default.nix
···3838 meta = with lib; {
3939 description = "A free multiplayer & singleplayer first person shooter, the successor of the Cube FPS";
4040 maintainers = with maintainers; [ raskin ajs124 ];
4141+ mainProgram = "sauerbraten_client";
4142 hydraPlatforms =
4243 # raskin: tested amd64-linux;
4344 # not setting platforms because it is 0.5+ GiB of game data