567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
50 lines
973 B
Nix
50 lines
973 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatch-vcs,
|
|
hatchling,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytest-timeout,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "filelock";
|
|
version = "3.20.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cR6UO07GvkLh1OZpC0jcF1yCKWdGa7McDCk/NDNME/Q=";
|
|
};
|
|
|
|
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 = with lib.maintainers; [ hyphon81 ];
|
|
};
|
|
}
|