Unverified Commit 230fac9a authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python313Packages.mirakuru: 2.5.3 -> 2.6.0

parent 9a37e0df
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  fetchFromGitHub,
  pythonOlder,
  pytestCheckHook,
  pytest-rerunfailures,
  setuptools,
  psutil,
  netcat,
@@ -14,8 +15,8 @@

buildPythonPackage rec {
  pname = "mirakuru";
  version = "2.5.3";
  format = "pyproject";
  version = "2.6.0";
  pyproject = true;

  disabled = pythonOlder "3.9";

@@ -23,24 +24,21 @@ buildPythonPackage rec {
    owner = "ClearcodeHQ";
    repo = "mirakuru";
    tag = "v${version}";
    hash = "sha256-blk4Oclb3+Cj3RH7BhzacfoPFDBIP/zgv4Ct7fawGnQ=";
    hash = "sha256-R5prLIub2kVhsKRGWbZMf/v0U7oOBieoLiHwMRDEs0I=";
  };

  patches = [
    # https://github.com/ClearcodeHQ/mirakuru/pull/810
    ./tmpdir.patch
  ];

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [ psutil ];
  dependencies = [ psutil ];

  nativeCheckInputs = [
    netcat.nc
    ps
    python-daemon
    pytest-rerunfailures
    pytestCheckHook
  ];

  pythonImportsCheck = [ "mirakuru" ];

  # Necessary for the tests to pass on Darwin with sandbox enabled.
@@ -61,7 +59,7 @@ buildPythonPackage rec {
    ];

  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";
    changelog = "https://github.com/ClearcodeHQ/mirakuru/blob/v${version}/CHANGES.rst";
    license = licenses.lgpl3Plus;
+0 −19
Original line number Diff line number Diff line
--- 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}"