Files
nixpkgs/pkgs/development/python-modules/lox/default.nix
2026-03-20 01:03:13 +01:00

55 lines
1013 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
pathos,
pytestCheckHook,
pytest-mock,
setuptools,
tqdm,
}:
buildPythonPackage rec {
pname = "lox";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "BrianPugh";
repo = "lox";
tag = "v${version}";
hash = "sha256-PZKs+D1TmrBr+1M4ni7kKLywQ8Z6YCVjH2HFF6QjHdY=";
};
build-system = [ setuptools ];
dependencies = [ pathos ];
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 ];
};
}