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