1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "asyncinotify"; 12 version = "4.2.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "absperf"; 19 repo = "asyncinotify"; 20 tag = "v${version}"; 21 hash = "sha256-X7R35LyrJaGJ70Houenpag0IMbqdsh+Sg9wMdzZmGfk="; 22 }; 23 24 build-system = [ flit-core ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "asyncinotify" ]; 29 30 enabledTestPaths = [ "test.py" ]; 31 32 meta = with lib; { 33 badPlatforms = [ 34 # Unsupported and crashing on import in dlsym with symbol not found 35 "aarch64-darwin" 36 "x86_64-darwin" 37 ]; 38 description = "Module for inotify"; 39 homepage = "https://github.com/absperf/asyncinotify/"; 40 changelog = "https://github.com/absperf/asyncinotify/releases/tag/v${version}"; 41 license = licenses.mpl20; 42 maintainers = with maintainers; [ cynerd ]; 43 }; 44}