0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

python313Packages.mirakuru: 2.5.3 -> 2.6.0

https://github.com/ClearcodeHQ/mirakuru/blob/v2.6.0/CHANGES.rst
This commit is contained in:
Martin Weinelt 2025-05-02 00:37:25 +02:00
parent 9a37e0df7b
commit 230fac9aa4
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 9 additions and 30 deletions

View file

@ -5,6 +5,7 @@
fetchFromGitHub, fetchFromGitHub,
pythonOlder, pythonOlder,
pytestCheckHook, pytestCheckHook,
pytest-rerunfailures,
setuptools, setuptools,
psutil, psutil,
netcat, netcat,
@ -14,8 +15,8 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mirakuru"; pname = "mirakuru";
version = "2.5.3"; version = "2.6.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -23,24 +24,21 @@ buildPythonPackage rec {
owner = "ClearcodeHQ"; owner = "ClearcodeHQ";
repo = "mirakuru"; repo = "mirakuru";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-blk4Oclb3+Cj3RH7BhzacfoPFDBIP/zgv4Ct7fawGnQ="; hash = "sha256-R5prLIub2kVhsKRGWbZMf/v0U7oOBieoLiHwMRDEs0I=";
}; };
patches = [ build-system = [ setuptools ];
# https://github.com/ClearcodeHQ/mirakuru/pull/810
./tmpdir.patch
];
nativeBuildInputs = [ setuptools ]; dependencies = [ psutil ];
propagatedBuildInputs = [ psutil ];
nativeCheckInputs = [ nativeCheckInputs = [
netcat.nc netcat.nc
ps ps
python-daemon python-daemon
pytest-rerunfailures
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "mirakuru" ]; pythonImportsCheck = [ "mirakuru" ];
# Necessary for the tests to pass on Darwin with sandbox enabled. # Necessary for the tests to pass on Darwin with sandbox enabled.
@ -61,7 +59,7 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
homepage = "https://pypi.org/project/mirakuru"; homepage = "https://github.com/dbfixtures/mirakuru";
description = "Process orchestration tool designed for functional and integration tests"; description = "Process orchestration tool designed for functional and integration tests";
changelog = "https://github.com/ClearcodeHQ/mirakuru/blob/v${version}/CHANGES.rst"; changelog = "https://github.com/ClearcodeHQ/mirakuru/blob/v${version}/CHANGES.rst";
license = licenses.lgpl3Plus; license = licenses.lgpl3Plus;

View file

@ -1,19 +0,0 @@
--- a/tests/executors/test_unixsocket_executor.py
+++ b/tests/executors/test_unixsocket_executor.py
@@ -4,6 +4,7 @@ Some of these tests run ``nc``: when running Debian, make sure the
``netcat-openbsd`` package is used, not ``netcat-traditional``.
"""
+import os
import sys
import pytest
@@ -12,7 +13,7 @@ from mirakuru import TimeoutExpired
from mirakuru.unixsocket import UnixSocketExecutor
from tests import TEST_SOCKET_SERVER_PATH
-SOCKET_PATH = "/tmp/mirakuru.sock"
+SOCKET_PATH = os.path.join(os.getenv("TMPDIR", "/tmp"), "mirakuru.sock")
SOCKET_SERVER_CMD = f"{sys.executable} {TEST_SOCKET_SERVER_PATH} {SOCKET_PATH}"