python3Packages.watchdog-gevent: 0.1.1 -> 0.2.1

Changed files
+9 -17
pkgs
development
python-modules
watchdog-gevent
+9 -17
pkgs/development/python-modules/watchdog-gevent/default.nix
···
{
lib,
buildPythonPackage,
-
fetchFromGitHub,
-
fetchpatch,
gevent,
pytestCheckHook,
setuptools,
···
buildPythonPackage rec {
pname = "watchdog-gevent";
-
version = "0.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
-
src = fetchFromGitHub {
-
owner = "Bogdanp";
-
repo = "watchdog_gevent";
-
tag = "v${version}";
-
hash = "sha256-FESm3fNuLmOg2ilI/x8U9LuAimHLnahcTHYzW/nzOVY=";
};
-
patches = [
-
# Add new event_filter argument to GeventEmitter
-
(fetchpatch {
-
name = "new-event_filter-argument.patch";
-
url = "https://github.com/Bogdanp/watchdog_gevent/commit/a98b6599aefb6f1ea6f9682485ed460c52f6e55f.patch";
-
hash = "sha256-lbUtl8IbnJjlsIpbC+wXLvYB+ZtUuHWqFtf31Bfqc2I=";
-
})
-
];
-
postPatch = ''
sed -i setup.cfg \
-e 's:--cov watchdog_gevent::' \
-e 's:--cov-report html::'
'';
build-system = [ setuptools ];
···
{
lib,
buildPythonPackage,
+
fetchPypi,
gevent,
pytestCheckHook,
setuptools,
···
buildPythonPackage rec {
pname = "watchdog-gevent";
+
version = "0.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
+
src = fetchPypi {
+
pname = "watchdog_gevent";
+
inherit version;
+
hash = "sha256-rmuU0PjIzhxZVs2GX2ErYfRWzxmAF0S7olo0n+jowzc=";
};
postPatch = ''
sed -i setup.cfg \
-e 's:--cov watchdog_gevent::' \
-e 's:--cov-report html::'
+
+
substituteInPlace tests/test_observer.py \
+
--replace-fail 'events == [FileModifiedEvent(__file__)]' 'FileModifiedEvent(__file__) in events'
'';
build-system = [ setuptools ];