python3Packages.brother: 1.1.0 -> 1.2.0

This commit is contained in:
Fabian Affolter 2022-04-16 23:29:51 +02:00
parent 88c2ebdaeb
commit c28265b289

View file

@ -1,37 +1,29 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pysnmp , pysnmplib
, pytest-asyncio , pytest-asyncio
, pytest-error-for-skips , pytest-error-for-skips
, pytest-runner
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "brother"; pname = "brother";
version = "1.1.0"; version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bieniu"; owner = "bieniu";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-ZDQIpzdr3XkYrSUgrBDZsUwUZRQCdJdvmniMezvJxzU="; hash = "sha256-hKOZ5pTDwhM0lOXoatXXVvEVxiTfxIpBRe3fFcUfzwE=";
}; };
nativeBuildInputs = [
pytest-runner
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov --cov-report term-missing " ""
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
pysnmp pysnmplib
]; ];
checkInputs = [ checkInputs = [
@ -40,7 +32,16 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "brother" ]; postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov --cov-report term-missing " ""
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
pythonImportsCheck = [
"brother"
];
meta = with lib; { meta = with lib; {
description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP"; description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP";