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