a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
37 lines
838 B
Nix
37 lines
838 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, asynctest
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aionotify";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rbarrois";
|
|
repo = "aionotify";
|
|
rev = "v${version}";
|
|
sha256 = "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y";
|
|
};
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
preCheck = ''
|
|
substituteInPlace tests/test_usage.py \
|
|
--replace "asyncio.wait_for(task, timeout, loop=self.loop)" "asyncio.wait_for(task, timeout)"
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
asynctest
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/rbarrois/aionotify";
|
|
description = "Simple, asyncio-based inotify library for Python";
|
|
license = with lib.licenses; [ bsd2 ];
|
|
platforms = platforms.linux;
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|