lol

Merge pull request #177894 from fgaz/pokete/init

authored by

Sandro and committed by
GitHub
d11a703d 0fcb7894

+82
+24
pkgs/development/python-modules/scrap-engine/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , setuptools-scm 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "scrap_engine"; 9 + version = "1.2.0"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "sha256-dn/9wxK1UHd3cc3Jo1Cp9tynOFUlndH+cZfIc244ysE="; 14 + }; 15 + 16 + nativeBuildInputs = [ setuptools-scm ]; 17 + 18 + meta = with lib; { 19 + maintainers = with maintainers; [ fgaz ]; 20 + description = "A 2D ascii game engine for the terminal"; 21 + homepage = "https://github.com/lxgr-linux/scrap_engine"; 22 + license = licenses.gpl3Only; 23 + }; 24 + }
+54
pkgs/games/pokete/default.nix
··· 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + , testers 5 + , pokete 6 + }: 7 + 8 + python3.pkgs.buildPythonApplication rec { 9 + pname = "pokete"; 10 + version = "0.7.2"; 11 + 12 + format = "other"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "lxgr-linux"; 16 + repo = "pokete"; 17 + rev = version; 18 + sha256 = "sha256-P6007qY6MsnQH4LGiNPoKCUt3+YI0OinKFdosaj3Wrc="; 19 + }; 20 + 21 + pythonPath = with python3.pkgs; [ 22 + scrap-engine 23 + pynput 24 + ]; 25 + 26 + buildPhase = '' 27 + ${python3.interpreter} -O -m compileall . 28 + ''; 29 + 30 + installPhase = '' 31 + mkdir -p $out/share/pokete 32 + cp -r assets pokete_classes pokete_data mods *.py $out/share/pokete/ 33 + mkdir -p $out/bin 34 + ln -s $out/share/pokete/pokete.py $out/bin/pokete 35 + ''; 36 + 37 + postFixup = '' 38 + wrapPythonProgramsIn $out/share/pokete "$pythonPath" 39 + ''; 40 + 41 + passthru.tests = { 42 + pokete-version = testers.testVersion { 43 + package = pokete; 44 + command = "pokete --help"; 45 + }; 46 + }; 47 + 48 + meta = with lib; { 49 + description = "A terminal based Pokemon like game"; 50 + homepage = "https://lxgr-linux.github.io/pokete"; 51 + license = licenses.gpl3Only; 52 + maintainers = with maintainers; [ fgaz ]; 53 + }; 54 + }
+2
pkgs/top-level/all-packages.nix
··· 32239 32239 target = "server"; 32240 32240 }; 32241 32241 32242 + pokete = callPackage ../games/pokete { }; 32243 + 32242 32244 powermanga = callPackage ../games/powermanga { }; 32243 32245 32244 32246 prboom-plus = callPackage ../games/prboom-plus { };
+2
pkgs/top-level/python-packages.nix
··· 9519 9519 9520 9520 scramp = callPackage ../development/python-modules/scramp { }; 9521 9521 9522 + scrap-engine = callPackage ../development/python-modules/scrap-engine { }; 9523 + 9522 9524 scrapy = callPackage ../development/python-modules/scrapy { }; 9523 9525 9524 9526 scrapy-deltafetch = callPackage ../development/python-modules/scrapy-deltafetch { };