portmod: 2.1.0 -> 2.6.2

authored by Theodore Ni and committed by Martin Weinelt 00ee658d 31a7d7ba

+19 -6
+19 -6
pkgs/games/portmod/default.nix
··· 12 12 }: 13 13 14 14 let 15 - version = "2.1.0"; 15 + version = "2.6.2"; 16 16 17 17 src = fetchFromGitLab { 18 18 owner = "portmod"; 19 19 repo = "Portmod"; 20 20 rev = "v${version}"; 21 - hash = "sha256-b/ENApFovMPNUMbJhwY+TZCnSzpr1e/IKJ/5XAGTQjE="; 21 + hash = "sha256-ufr2guaPdCvI5JOicL/lTrT3t6UlaY1hEB2xbwzhw6A="; 22 22 }; 23 23 24 24 portmod-rust = rustPlatform.buildRustPackage rec { 25 25 inherit src version; 26 26 pname = "portmod-rust"; 27 27 28 - cargoHash = "sha256-3EfMMpSWSYsB3nXaoGGDuKQ9duyCKzbrT6oeATnzqLE="; 28 + cargoHash = "sha256-sAjgGVVjgXaWbmN/eGEvatYjkHeFTZNX1GXFcJqs3GI="; 29 29 30 30 nativeBuildInputs = [ 31 31 python3Packages.python ··· 49 49 inherit src version; 50 50 51 51 pname = "portmod"; 52 + format = "pyproject"; 52 53 53 - SETUPTOOLS_SCM_PRETEND_VERSION = version; 54 + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 54 55 55 56 # build the rust library independantly 56 57 prePatch = '' 57 58 substituteInPlace setup.py \ 58 - --replace "from setuptools_rust import Binding, RustExtension" "" \ 59 - --replace "RustExtension(\"portmodlib.portmod\", binding=Binding.PyO3, strip=True)" "" 59 + --replace "from setuptools_rust import Binding, RustExtension, Strip" "" \ 60 + --replace "RustExtension(\"portmodlib.portmod\", binding=Binding.PyO3, strip=Strip.Debug)" "" 61 + 62 + substituteInPlace pyproject.toml \ 63 + --replace '"setuptools-rust"' "" 60 64 ''; 61 65 66 + nativeBuildInputs = with python3Packages; [ 67 + setuptools 68 + wheel 69 + ]; 70 + 62 71 propagatedBuildInputs = with python3Packages; [ 63 72 setuptools-scm 64 73 setuptools 65 74 requests 66 75 chardet 67 76 colorama 77 + deprecated 68 78 restrictedpython 69 79 appdirs 70 80 gitpython ··· 95 105 "test_sync" 96 106 "test_manifest" 97 107 "test_add_repo" 108 + "test_init_prefix_interactive" 109 + "test_scan_sources" 110 + "test_unpack" 98 111 ]; 99 112 100 113 # for some reason, installPhase doesn't copy the compiled binary