Files
nixpkgs/pkgs/development/python-modules/mirakuru/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

65 lines
1.4 KiB
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-rerunfailures,
setuptools,
psutil,
netcat,
ps,
python-daemon,
}:
buildPythonPackage rec {
pname = "mirakuru";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ClearcodeHQ";
repo = "mirakuru";
tag = "v${version}";
hash = "sha256-R5prLIub2kVhsKRGWbZMf/v0U7oOBieoLiHwMRDEs0I=";
};
build-system = [ setuptools ];
dependencies = [ psutil ];
nativeCheckInputs = [
netcat.nc
ps
python-daemon
pytest-rerunfailures
pytestCheckHook
];
pythonImportsCheck = [ "mirakuru" ];
# Necessary for the tests to pass on Darwin with sandbox enabled.
__darwinAllowLocalNetworking = true;
# Those are failing in the darwin sandbox with:
# > ps: %mem: requires entitlement
# > ps: vsz: requires entitlement
# > ps: rss: requires entitlement
# > ps: time: requires entitlement
disabledTests = [
"test_forgotten_stop"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"test_mirakuru_cleanup"
"test_daemons_killing"
];
meta = {
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 = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}