gns3-server: migrate to pythonRelaxDepsHook
This commit is contained in:
parent
f79252abc3
commit
056509befe
@ -17,16 +17,20 @@ python3.pkgs.buildPythonApplication {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "GNS3";
|
owner = "GNS3";
|
||||||
repo = "gns3-server";
|
repo = "gns3-server";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = sha256Hash;
|
sha256 = sha256Hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
pythonRelaxDeps = [
|
||||||
substituteInPlace requirements.txt \
|
"aiofiles"
|
||||||
--replace "psutil==" "psutil>=" \
|
"jsonschema"
|
||||||
--replace "jsonschema>=4.17.0,<4.18" "jsonschema" \
|
"psutil"
|
||||||
--replace "sentry-sdk==1.10.1,<1.11" "sentry-sdk"
|
"sentry-sdk"
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
aiofiles
|
aiofiles
|
||||||
|
Loading…
Reference in New Issue
Block a user