Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "asyncinotify"; 12 version = "4.0.6"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "absperf"; 19 repo = "asyncinotify"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-RXx6i5dIB2oySVaLoHPRGD9VKgiO5OAXmrzVBq8Ad18="; 22 }; 23 24 nativeBuildInputs = [ flit-core ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "asyncinotify" ]; 29 30 pytestFlagsArray = [ "test.py" ]; 31 32 meta = with lib; { 33 description = "Module for inotify"; 34 homepage = "https://github.com/absperf/asyncinotify/"; 35 changelog = "https://github.com/absperf/asyncinotify/releases/tag/v${version}"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ cynerd ]; 38 }; 39}