2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-10-06 18:32:54 +00:00
|
|
|
, dacite
|
2024-01-25 14:12:00 +00:00
|
|
|
, pysnmp-lextudio
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-error-for-skips
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brother";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bieniu";
|
|
|
|
repo = pname;
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-rRzcWT9DcNTBUYxyYYC7WORBbrkgj0toCp2e8ADUN5s=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-06 18:32:54 +00:00
|
|
|
dacite
|
2024-01-25 14:12:00 +00:00
|
|
|
pysnmp-lextudio
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
pytest-asyncio
|
2021-03-19 17:17:44 +00:00
|
|
|
pytest-error-for-skips
|
|
|
|
pytestCheckHook
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"brother"
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2021-03-19 17:17:44 +00:00
|
|
|
description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/bieniu/brother";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/bieniu/brother/releases/tag/${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|