1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2, pysnmp
3, asynctest, pytestcov, pytestrunner, pytest-asyncio, pytest-trio, pytest-tornasync }:
4
5buildPythonPackage rec {
6 pname = "brother";
7 version = "0.1.14";
8 disabled = pythonOlder "3.6";
9
10 src = fetchFromGitHub {
11 owner = "bieniu";
12 repo = pname;
13 rev = version;
14 sha256 = "11pkr30bxrzgbz6bi42dyhav6qhr7rz9fb6a13297g7wa77jn4r4";
15 };
16
17 propagatedBuildInputs = [
18 pysnmp
19 ];
20
21 checkInputs = [
22 asynctest
23 pytestcov
24 pytestrunner
25 pytest-asyncio
26 pytest-trio
27 pytest-tornasync
28 ];
29
30 meta = with lib; {
31 description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP.";
32 homepage = "https://github.com/bieniu/brother";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ hexa ];
35 };
36}