Merge pull request #116505 from fabaff/bump-brother
python3Packages.brother: 0.2.1 -> 0.2.2
This commit is contained in:
commit
22e17d823d
|
@ -1,25 +1,33 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
, pysnmp
|
, pysnmp
|
||||||
, asynctest, pytestcov, pytestrunner, pytest-asyncio, pytest-trio, pytest-tornasync }:
|
, pytest-asyncio
|
||||||
|
, pytest-error-for-skips
|
||||||
|
, pytest-runner
|
||||||
|
, pytest-tornasync
|
||||||
|
, pytest-trio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "brother";
|
pname = "brother";
|
||||||
version = "0.2.1";
|
version = "0.2.2";
|
||||||
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-yOloGkOVhXcTt0PAjf3yWUItN1okO94DndRFsImiuz4=";
|
sha256 = "sha256-vIefcL3K3ZbAUxMFM7gbbTFdrnmufWZHcq4OA19SYXE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# pytest-error-for-skips is not packaged
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pytest.ini \
|
substituteInPlace pytest.ini \
|
||||||
--replace " --error-for-skips" ""
|
--replace "--cov --cov-report term-missing " ""
|
||||||
substituteInPlace setup.py \
|
substituteInPlace requirements-test.txt \
|
||||||
--replace "\"pytest-error-for-skips\"" ""
|
--replace "pytest-cov" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -27,16 +35,18 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
asynctest
|
|
||||||
pytestcov
|
|
||||||
pytestrunner
|
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-trio
|
pytest-error-for-skips
|
||||||
|
pytest-runner
|
||||||
pytest-tornasync
|
pytest-tornasync
|
||||||
|
pytest-trio
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
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";
|
||||||
homepage = "https://github.com/bieniu/brother";
|
homepage = "https://github.com/bieniu/brother";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ hexa ];
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytest-error-for-skips";
|
||||||
|
version = "2.0.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jankatins";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "04i4jd3bg4lgn2jfh0a0dzg3ml9b2bjv2ndia6b64w96r3r4p3qr";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pytest_error_for_skips" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Pytest plugin to treat skipped tests a test failures";
|
||||||
|
homepage = "https://github.com/jankatins/pytest-error-for-skips";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6412,6 +6412,8 @@ in {
|
||||||
|
|
||||||
pytest-env = callPackage ../development/python-modules/pytest-env { };
|
pytest-env = callPackage ../development/python-modules/pytest-env { };
|
||||||
|
|
||||||
|
pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };
|
||||||
|
|
||||||
pytest-expect = callPackage ../development/python-modules/pytest-expect { };
|
pytest-expect = callPackage ../development/python-modules/pytest-expect { };
|
||||||
|
|
||||||
pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };
|
pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };
|
||||||
|
|
Loading…
Reference in a new issue