1{ lib 2, buildPythonPackage 3, fetchPypi 4, CoreFoundation 5, CoreServices 6}: 7 8buildPythonPackage rec { 9 pname = "MacFSEvents"; 10 version = "0.8.4"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "sha256-v3KD8dUXdkzNyBlbIWMdu6wcUGuSC/mo6ilWsxJ2Ucs="; 15 }; 16 17 buildInputs = [ CoreFoundation CoreServices ]; 18 19 # Some tests fail under nix build directory 20 doCheck = false; 21 22 pythonImportsCheck = [ "fsevents" ]; 23 24 meta = with lib; { 25 description = "Thread-based interface to file system observation primitives"; 26 homepage = "https://github.com/malthe/macfsevents"; 27 changelog = "https://github.com/malthe/macfsevents/blob/${version}/CHANGES.rst"; 28 license = licenses.bsd2; 29 maintainers = [ maintainers.marsam ]; 30 platforms = platforms.darwin; 31 }; 32}