1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 asyncinotify,
7 pytest-asyncio,
8 pytest-cov-stub,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "aiousbwatcher";
14 version = "1.1.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "Bluetooth-Devices";
19 repo = "aiousbwatcher";
20 tag = "v${version}";
21 hash = "sha256-M9MUaB3oHELHdtgaWri9nILnVQpF2FJvHrL68jXeOqg=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ asyncinotify ];
27
28 nativeCheckInputs = [
29 pytest-asyncio
30 pytest-cov-stub
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "aiousbwatcher" ];
35
36 meta = {
37 description = "Watch for USB devices to be plugged and unplugged";
38 homepage = "https://github.com/Bluetooth-Devices/aiousbwatcher";
39 changelog = "https://github.com/Bluetooth-Devices/aiousbwatcher/blob/${src.tag}/CHANGELOG.md";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ hexa ];
42 };
43}