14 buildPythonPackage rec {
17 format = "setuptools";
20 inherit pname version;
21 sha256 = "sha256-Q84g67NqUfIfo3b3bR1GkkUrJSfM1gGVDWntNrniFgk=";
24 patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [
28 url = "https://github.com/gorakhargosh/watchdog/commit/255d1e45c17929dd5ba8a6f91aa28771109931cd.patch";
29 sha256 = "sha256-gGgEGuB/0g+4Pv1dXMvIdObjqKruWKkxtufS/dzSlY8=";
30 excludes = [ "changelog.rst" ];
34 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
36 propagatedBuildInputs = [
48 substituteInPlace setup.cfg \
49 --replace "--cov=watchdog" "" \
50 --replace "--cov-report=term-missing" ""
54 # probably failing because of an encoding related issue
55 "test_create_wrong_encoding"
56 ] ++ lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [
62 "tests/test_inotify_buffer.py"
65 pythonImportsCheck = [
70 description = "Python API and shell utilities to monitor file system events";
71 homepage = "https://github.com/gorakhargosh/watchdog";
72 license = licenses.asl20;
73 maintainers = with maintainers; [ goibhniu ];