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