Merge pull request #168607 from fabaff/bump-brother

python3Packages.brother: 1.1.0 -> 1.2.0
This commit is contained in:
Martin Weinelt 2022-04-16 23:44:00 +02:00 committed by GitHub
commit 109594a1ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 157 additions and 15 deletions

View file

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

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pysnmp-pyasn1";
version = "1.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pyasn1";
rev = "v${version}";
hash = "sha256-R4reMwVcJBTfTEHUk6sSUugsEPuKIziH1WbjMakP/dA=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyasn1"
];
meta = with lib; {
description = "Python ASN.1 encoder and decoder";
homepage = "https://github.com/pysnmp/pyasn1";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, ply
, poetry-core
, requests
}:
buildPythonPackage rec {
pname = "pysnmp-pysmi";
version = "1.1.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pysmi";
rev = "v${version}";
hash = "sha256-nsIEZPD7bfbePZukkudP0ZH/m8Be88QkVDM5PdjNHVk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
ply
requests
];
# Circular dependency with pysnmplib
doCheck = false;
pythonImportsCheck = [
"pysmi"
];
meta = with lib; {
description = "SNMP MIB parser";
homepage = "https://github.com/pysnmp/pysmi";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pycryptodomex
, pysnmp-pyasn1
, pysnmp-pysmi
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysnmplib";
version = "5.0.10";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pysnmp";
rev = "v${version}";
hash = "sha256-PsfsOVzeHCVdd1Bi+FYYi68Wzn1MI8dZUbRr/tmT+cA=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pysnmp-pysmi
pysnmp-pyasn1
pycryptodomex
];
# Module has no test, examples are used for testing
doCheck = false;
pythonImportsCheck = [
"pysnmp"
];
meta = with lib; {
description = "Implementation of v1/v2c/v3 SNMP engine";
homepage = "https://github.com/pysnmp/pysnmp";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -7790,6 +7790,12 @@ in {
pysnmp = callPackage ../development/python-modules/pysnmp { };
pysnmp-pyasn1 = callPackage ../development/python-modules/pysnmp-pyasn1 { };
pysnmp-pysmi = callPackage ../development/python-modules/pysnmp-pysmi { };
pysnmplib = callPackage ../development/python-modules/pysnmplib { };
pysnooper = callPackage ../development/python-modules/pysnooper { };
pysnow = callPackage ../development/python-modules/pysnow { };