1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, asynctest
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "aionotify";
10 version = "0.2.0";
11
12 src = fetchFromGitHub {
13 owner = "rbarrois";
14 repo = "aionotify";
15 rev = "v${version}";
16 sha256 = "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y";
17 };
18
19 disabled = pythonOlder "3.5";
20
21 preCheck = ''
22 substituteInPlace tests/test_usage.py \
23 --replace "asyncio.wait_for(task, timeout, loop=self.loop)" "asyncio.wait_for(task, timeout)"
24 '';
25
26 checkInputs = [
27 asynctest
28 ];
29
30 meta = with lib; {
31 homepage = "https://github.com/rbarrois/aionotify";
32 description = "Simple, asyncio-based inotify library for Python";
33 license = with lib.licenses; [ bsd2 ];
34 platforms = platforms.linux;
35 maintainers = with lib.maintainers; [ ];
36 };
37}