Files
nixpkgs/pkgs/development/python-modules/filelock/default.nix
Martin Weinelt db883c3f8e python3Packages.filelock: disable flaky locking tests
Locally these work fine, on builders these timeout after 20s.
2026-05-30 03:53:10 +02:00

54 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
pytest-asyncio,
pytest-mock,
pytest-timeout,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "filelock";
version = "3.29.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tox-dev";
repo = "filelock";
tag = version;
hash = "sha256-efBEyjuCcLkHsfpG61eKN6ALk4QW4UMdNmD56rSgFLc=";
};
build-system = [
hatch-vcs
hatchling
];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "filelock" ];
disabledTestPaths = [
# Circular dependency with virtualenv
"tests/test_virtualenv.py"
# Very prone to timeouts on busy machines
"tests/test_filelock.py"
];
meta = {
changelog = "https://github.com/tox-dev/py-filelock/releases/tag/${version}";
description = "Platform independent file lock for Python";
homepage = "https://github.com/benediktschmitt/py-filelock";
license = lib.licenses.mit;
maintainers = [ ];
};
}