···1-{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder }:
2buildPythonPackage rec {
3 pname = "typed-ast";
4- version = "1.4.1";
5- src = fetchFromGitHub{
6 owner = "python";
7 repo = "typed_ast";
8 rev = version;
9- sha256 = "086r9qhls6mz1w72a6d1ld3m4fbkxklf6mgwbs8wpw0zlxjm7y40";
10 };
11 # Only works with Python 3.3 and newer;
12 disabled = pythonOlder "3.3";
13- # No tests in archive
14- doCheck = false;
0000000000000000000015 meta = {
16- homepage = "https://pypi.python.org/pypi/typed-ast";
17- description = "a fork of Python 2 and 3 ast modules with type comment support";
18 license = lib.licenses.asl20;
19 };
20}
···1+{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder, pytest }:
2buildPythonPackage rec {
3 pname = "typed-ast";
4+ version = "1.4.3";
5+ src = fetchFromGitHub {
6 owner = "python";
7 repo = "typed_ast";
8 rev = version;
9+ sha256 = "16mn9snwik5n2ib65sw2xcaqdm02j8ps21zgjxf8kyy7qnx2mx4w";
10 };
11 # Only works with Python 3.3 and newer;
12 disabled = pythonOlder "3.3";
13+14+ pythonImportsCheck = [
15+ "typed_ast"
16+ "typed_ast.ast27"
17+ "typed_ast.ast3"
18+ "typed_ast.conversions"
19+ ];
20+21+ checkInputs = [
22+ pytest
23+ ];
24+ checkPhase = ''
25+ runHook preCheck
26+27+ # We can't use pytestCheckHook because that invokes pytest with python -m pytest
28+ # which adds the current directory to sys.path at the beginning.
29+ # _That_ version of the typed_ast module doesn't have the C extensions we need.
30+ pytest
31+32+ runHook postCheck
33+ '';
34+35 meta = {
36+ homepage = "https://github.com/python/typed_ast";
37+ description = "Python 2 and 3 ast modules with type comment support";
38 license = lib.licenses.asl20;
39 };
40}
+1
pkgs/games/sauerbraten/default.nix
···38 meta = with lib; {
39 description = "A free multiplayer & singleplayer first person shooter, the successor of the Cube FPS";
40 maintainers = with maintainers; [ raskin ajs124 ];
041 hydraPlatforms =
42 # raskin: tested amd64-linux;
43 # not setting platforms because it is 0.5+ GiB of game data
···38 meta = with lib; {
39 description = "A free multiplayer & singleplayer first person shooter, the successor of the Cube FPS";
40 maintainers = with maintainers; [ raskin ajs124 ];
41+ mainProgram = "sauerbraten_client";
42 hydraPlatforms =
43 # raskin: tested amd64-linux;
44 # not setting platforms because it is 0.5+ GiB of game data