1{ lib 2, buildPythonPackage 3, fetchPypi 4, hatch-vcs 5, hatchling 6, pytest-mock 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "filelock"; 13 version = "3.12.4"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Lm8knx82VCkWBuBGsJ8f1erDmzYGZMJ/Wq0HIBL4vL0="; 21 }; 22 23 nativeBuildInputs = [ 24 hatch-vcs 25 hatchling 26 ]; 27 28 nativeCheckInputs = [ 29 pytest-mock 30 pytestCheckHook 31 ]; 32 33 meta = with lib; { 34 changelog = "https://github.com/tox-dev/py-filelock/releases/tag/${version}"; 35 description = "A platform independent file lock for Python"; 36 homepage = "https://github.com/benediktschmitt/py-filelock"; 37 license = licenses.unlicense; 38 maintainers = with maintainers; [ hyphon81 ]; 39 }; 40}