nixpkgs/pkgs/development/python-modules/filelock/default.nix

49 lines
942 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-vcs,
hatchling,
pytest-asyncio,
pytest-mock,
pytest-timeout,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "filelock";
version = "3.20.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-GMV+6RXH7GHP8Oz38Phpk2x8MBkbsM9AbxNBd40INOE=";
};
build-system = [
hatch-vcs
hatchling
];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "filelock" ];
disabledTestPaths = [
# Circular dependency with virtualenv
"tests/test_virtualenv.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.unlicense;
maintainers = [ ];
};
}