1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, dacite 5, pysnmplib 6, pytest-asyncio 7, pytest-error-for-skips 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "brother"; 14 version = "2.0.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "bieniu"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-pk9VBFha2NfQWI+fbWwGKcGFa93eKr5Cqh85r1CAXpI="; 24 }; 25 26 propagatedBuildInputs = [ 27 dacite 28 pysnmplib 29 ]; 30 31 checkInputs = [ 32 pytest-asyncio 33 pytest-error-for-skips 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "brother" 39 ]; 40 41 meta = with lib; { 42 description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP"; 43 homepage = "https://github.com/bieniu/brother"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ hexa ]; 46 }; 47}