at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 freezegun, 6 dacite, 7 pysnmp, 8 pytest-asyncio, 9 pytest-error-for-skips, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13 syrupy, 14}: 15 16buildPythonPackage rec { 17 pname = "brother"; 18 version = "5.1.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "bieniu"; 25 repo = "brother"; 26 tag = version; 27 hash = "sha256-g0Xg12JV7CpgSzitEEzsFFpTKF644m6mbo1KgvhQOO4="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 dacite 34 pysnmp 35 ]; 36 37 nativeCheckInputs = [ 38 freezegun 39 pytest-asyncio 40 pytest-error-for-skips 41 pytestCheckHook 42 syrupy 43 ]; 44 45 pythonImportsCheck = [ "brother" ]; 46 47 meta = with lib; { 48 description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP"; 49 homepage = "https://github.com/bieniu/brother"; 50 changelog = "https://github.com/bieniu/brother/releases/tag/${src.tag}"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ hexa ]; 53 }; 54}