2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-16 18:11:47 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, argh
|
|
|
|
, pathtools
|
|
|
|
, pyyaml
|
|
|
|
, pkgs
|
2021-02-01 22:32:12 +00:00
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
2018-10-16 18:11:47 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "watchdog";
|
2021-02-15 11:54:59 +00:00
|
|
|
version = "2.0.0";
|
2018-10-16 18:11:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-15 11:54:59 +00:00
|
|
|
sha256 = "sha256-/UtWz74NDZxPxDGs7KdXAKfxLTc33C6csuwrpkloBCU=";
|
2018-10-16 18:11:47 +01:00
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin
|
2019-06-20 17:40:52 +01:00
|
|
|
[ pkgs.darwin.apple_sdk.frameworks.CoreServices ];
|
2018-10-16 18:11:47 +01:00
|
|
|
|
2021-02-01 22:32:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
argh
|
|
|
|
pathtools
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "watchdog" ];
|
2018-10-16 18:11:47 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 18:11:47 +01:00
|
|
|
description = "Python API and shell utilities to monitor file system events";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gorakhargosh/watchdog";
|
2018-10-16 18:11:47 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|