mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
portmod: 2.1.0 -> 2.6.2
This commit is contained in:
parent
31a7d7ba4c
commit
00ee658dfb
@ -12,20 +12,20 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.1.0";
|
version = "2.6.2";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "portmod";
|
owner = "portmod";
|
||||||
repo = "Portmod";
|
repo = "Portmod";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-b/ENApFovMPNUMbJhwY+TZCnSzpr1e/IKJ/5XAGTQjE=";
|
hash = "sha256-ufr2guaPdCvI5JOicL/lTrT3t6UlaY1hEB2xbwzhw6A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
portmod-rust = rustPlatform.buildRustPackage rec {
|
portmod-rust = rustPlatform.buildRustPackage rec {
|
||||||
inherit src version;
|
inherit src version;
|
||||||
pname = "portmod-rust";
|
pname = "portmod-rust";
|
||||||
|
|
||||||
cargoHash = "sha256-3EfMMpSWSYsB3nXaoGGDuKQ9duyCKzbrT6oeATnzqLE=";
|
cargoHash = "sha256-sAjgGVVjgXaWbmN/eGEvatYjkHeFTZNX1GXFcJqs3GI=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
python3Packages.python
|
python3Packages.python
|
||||||
@ -49,22 +49,32 @@ python3Packages.buildPythonApplication rec {
|
|||||||
inherit src version;
|
inherit src version;
|
||||||
|
|
||||||
pname = "portmod";
|
pname = "portmod";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
# build the rust library independantly
|
# build the rust library independantly
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "from setuptools_rust import Binding, RustExtension" "" \
|
--replace "from setuptools_rust import Binding, RustExtension, Strip" "" \
|
||||||
--replace "RustExtension(\"portmodlib.portmod\", binding=Binding.PyO3, strip=True)" ""
|
--replace "RustExtension(\"portmodlib.portmod\", binding=Binding.PyO3, strip=Strip.Debug)" ""
|
||||||
|
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace '"setuptools-rust"' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3Packages; [
|
||||||
|
setuptools
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
setuptools
|
setuptools
|
||||||
requests
|
requests
|
||||||
chardet
|
chardet
|
||||||
colorama
|
colorama
|
||||||
|
deprecated
|
||||||
restrictedpython
|
restrictedpython
|
||||||
appdirs
|
appdirs
|
||||||
gitpython
|
gitpython
|
||||||
@ -95,6 +105,9 @@ python3Packages.buildPythonApplication rec {
|
|||||||
"test_sync"
|
"test_sync"
|
||||||
"test_manifest"
|
"test_manifest"
|
||||||
"test_add_repo"
|
"test_add_repo"
|
||||||
|
"test_init_prefix_interactive"
|
||||||
|
"test_scan_sources"
|
||||||
|
"test_unpack"
|
||||||
];
|
];
|
||||||
|
|
||||||
# for some reason, installPhase doesn't copy the compiled binary
|
# for some reason, installPhase doesn't copy the compiled binary
|
||||||
|
Loading…
Reference in New Issue
Block a user