Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
|
|
pathos,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
setuptools,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lox";
|
|
version = "0.13.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BrianPugh";
|
|
repo = "lox";
|
|
tag = "v${version}";
|
|
hash = "sha256-I/+/wl+H3OLAN26qJVqyqgW72GoTddm59j2Y6fsz8AM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ pathos ];
|
|
|
|
# setup.py requires pytest-runner for setuptools, which is wrong
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace-fail '"pytest-runner",' ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "lox" ];
|
|
|
|
disabledTests = [
|
|
# Benchmark, performance testing
|
|
"test_perf_lock"
|
|
"test_perf_qlock"
|
|
|
|
# time sensitive testing
|
|
"test_bathroom_example"
|
|
"test_RWLock_r"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
tqdm
|
|
];
|
|
|
|
meta = {
|
|
description = "Threading and Multiprocessing made easy";
|
|
changelog = "https://github.com/BrianPugh/lox/releases/tag/${src.tag}";
|
|
homepage = "https://github.com/BrianPugh/lox";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.greg ];
|
|
};
|
|
}
|