mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-10 10:48:00 +00:00
54 lines
1.0 KiB
Nix
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 = [ ];
|
|
};
|
|
}
|