nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "macfsevents"; 10 version = "0.8.4"; 11 pyproject = true; 12 13 src = fetchPypi { 14 pname = "MacFSEvents"; 15 inherit version; 16 hash = "sha256-v3KD8dUXdkzNyBlbIWMdu6wcUGuSC/mo6ilWsxJ2Ucs="; 17 }; 18 19 patches = [ ./fix-packaging.patch ]; 20 21 build-system = [ setuptools ]; 22 23 # PyEval_InitThreads is deprecated in Python 3.9, to be removed in Python 3.14 24 # and breaks the build under clang 16. 25 # https://github.com/malthe/macfsevents/issues/49 26 env.NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration"; 27 28 # Some tests fail under nix build directory 29 doCheck = false; 30 31 pythonImportsCheck = [ "fsevents" ]; 32 33 meta = { 34 description = "Thread-based interface to file system observation primitives"; 35 homepage = "https://github.com/malthe/macfsevents"; 36 changelog = "https://github.com/malthe/macfsevents/blob/${version}/CHANGES.rst"; 37 license = lib.licenses.bsd2; 38 maintainers = [ ]; 39 platforms = lib.platforms.darwin; 40 }; 41}