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