python313Packages.locust: 2.32.6 -> 2.33.1, fix build (#388942)

This commit is contained in:
Arne Keller
2025-03-13 10:38:37 +01:00
committed by GitHub
2 changed files with 7 additions and 15 deletions
@@ -4,8 +4,8 @@
python,
callPackage,
fetchFromGitHub,
poetry-core,
poetry-dynamic-versioning,
hatchling,
hatch-vcs,
pytestCheckHook,
configargparse,
cryptography,
@@ -26,20 +26,17 @@
buildPythonPackage rec {
pname = "locust";
version = "2.32.6";
version = "2.33.1";
pyproject = true;
src = fetchFromGitHub {
owner = "locustio";
repo = "locust";
tag = version;
hash = "sha256-KWPIZLdOx09iMlnczjmlzPmy32ozw0xEBZI9li+fJ24=";
hash = "sha256-cOYdf3F1OF1P4xFEG3isuiePIl1tHnjL7UVoFIpb40A=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'script = "pre_build.py"' ""
substituteInPlace locust/test/test_main.py \
--replace-fail '"locust"' '"${placeholder "out"}/bin/locust"'
@@ -52,14 +49,9 @@ buildPythonPackage rec {
src = "${src}/locust/webui";
};
preBuild = ''
mkdir -p $out/${python.sitePackages}/${pname}
ln -sf ${webui} $out/${python.sitePackages}/${pname}/webui
'';
build-system = [
poetry-core
poetry-dynamic-versioning
hatchling
hatch-vcs
];
pythonRelaxDeps = [
@@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-ek02mjB8DsBUOR28WSuqj6oVvxTq8EKTNXWFFI3OhuU=";
hash = "sha256-OTGTpAAxr8rmCi5oEWIWzwZqiP3Cx3vyc3r2kbcLyUg=";
};
nativeBuildInputs = [