5b567aa208
GitOrigin-RevId: 16105403bdd843540cbef9c63fc0f16c1c6eaa70
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, argh
|
|
, pathtools
|
|
, pyyaml
|
|
, flaky
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, CoreServices
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "watchdog";
|
|
version = "2.1.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-5SNqjoYCq220uHNmTC01bDZas8rJb73sSXCtYWQV3UU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|