2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
40 lines
915 B
Nix
40 lines
915 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, gevent
|
|
, pytestCheckHook
|
|
, watchdog
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "watchdog-gevent";
|
|
version = "0.1.1";
|
|
format = "setuptools";
|
|
|
|
# Need to fetch from github because tests are not present in pypi
|
|
src = fetchFromGitHub {
|
|
owner = "Bogdanp";
|
|
repo = "watchdog_gevent";
|
|
rev = "v${version}";
|
|
hash = "sha256-FESm3fNuLmOg2ilI/x8U9LuAimHLnahcTHYzW/nzOVY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ watchdog gevent ];
|
|
|
|
postPatch = ''
|
|
sed -i setup.cfg \
|
|
-e 's:--cov watchdog_gevent::' \
|
|
-e 's:--cov-report html::'
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "watchdog_gevent" ];
|
|
|
|
meta = with lib; {
|
|
description = "A gevent-based observer for watchdog";
|
|
homepage = "https://github.com/Bogdanp/watchdog_gevent";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ traxys ];
|
|
};
|
|
}
|