88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, argh
|
|
, pathtools
|
|
, pyyaml
|
|
, flaky
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, CoreServices
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "watchdog";
|
|
version = "2.1.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5563b005907613430ef3d4aaac9c78600dd5704e84764cb6deda4b3d72807f09";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
propagatedBuildInputs = [
|
|
argh
|
|
pathtools
|
|
pyyaml
|
|
];
|
|
|
|
checkInputs = [
|
|
flaky
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "--cov=watchdog" "" \
|
|
--replace "--cov-report=term-missing" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "watchdog" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API and shell utilities to monitor file system events";
|
|
homepage = "https://github.com/gorakhargosh/watchdog";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
# error: use of undeclared identifier 'kFSEventStreamEventFlagItemCloned'
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|