mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +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:
parent
9a37e0df7b
commit
230fac9aa4
2 changed files with 9 additions and 30 deletions
|
@ -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
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [ 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;
|
||||
|
|
|
@ -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}"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue