Merge pull request #116505 from fabaff/bump-brother

python3Packages.brother: 0.2.1 -> 0.2.2

authored by Martin Weinelt and committed by GitHub 22e17d82 6440e2e3

+56 -13
+23 -13
pkgs/development/python-modules/brother/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pythonOlder 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 2 4 , pysnmp 3 - , asynctest, pytestcov, pytestrunner, pytest-asyncio, pytest-trio, pytest-tornasync }: 5 + , pytest-asyncio 6 + , pytest-error-for-skips 7 + , pytest-runner 8 + , pytest-tornasync 9 + , pytest-trio 10 + , pytestCheckHook 11 + , pythonOlder 12 + }: 4 13 5 14 buildPythonPackage rec { 6 15 pname = "brother"; 7 - version = "0.2.1"; 16 + version = "0.2.2"; 8 17 disabled = pythonOlder "3.8"; 9 18 10 19 src = fetchFromGitHub { 11 20 owner = "bieniu"; 12 21 repo = pname; 13 22 rev = version; 14 - sha256 = "sha256-yOloGkOVhXcTt0PAjf3yWUItN1okO94DndRFsImiuz4="; 23 + sha256 = "sha256-vIefcL3K3ZbAUxMFM7gbbTFdrnmufWZHcq4OA19SYXE="; 15 24 }; 16 25 17 - # pytest-error-for-skips is not packaged 18 26 postPatch = '' 19 27 substituteInPlace pytest.ini \ 20 - --replace " --error-for-skips" "" 21 - substituteInPlace setup.py \ 22 - --replace "\"pytest-error-for-skips\"" "" 28 + --replace "--cov --cov-report term-missing " "" 29 + substituteInPlace requirements-test.txt \ 30 + --replace "pytest-cov" "" 23 31 ''; 24 32 25 33 propagatedBuildInputs = [ ··· 27 35 ]; 28 36 29 37 checkInputs = [ 30 - asynctest 31 - pytestcov 32 - pytestrunner 33 38 pytest-asyncio 39 + pytest-error-for-skips 40 + pytest-runner 41 + pytest-tornasync 34 42 pytest-trio 35 - pytest-tornasync 43 + pytestCheckHook 36 44 ]; 37 45 46 + pythonImportsCheck = [ "brother" ]; 47 + 38 48 meta = with lib; { 39 - description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP."; 49 + description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP"; 40 50 homepage = "https://github.com/bieniu/brother"; 41 51 license = licenses.asl20; 42 52 maintainers = with maintainers; [ hexa ];
+31
pkgs/development/python-modules/pytest-error-for-skips/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytest 5 + , pytestCheckHook 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "pytest-error-for-skips"; 10 + version = "2.0.2"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "jankatins"; 14 + repo = pname; 15 + rev = version; 16 + sha256 = "04i4jd3bg4lgn2jfh0a0dzg3ml9b2bjv2ndia6b64w96r3r4p3qr"; 17 + }; 18 + 19 + buildInputs = [ pytest ]; 20 + 21 + checkInputs = [ pytestCheckHook ]; 22 + 23 + pythonImportsCheck = [ "pytest_error_for_skips" ]; 24 + 25 + meta = with lib; { 26 + description = "Pytest plugin to treat skipped tests a test failures"; 27 + homepage = "https://github.com/jankatins/pytest-error-for-skips"; 28 + license = licenses.mit; 29 + maintainers = with maintainers; [ fab ]; 30 + }; 31 + }
+2
pkgs/top-level/python-packages.nix
··· 6412 6412 6413 6413 pytest-env = callPackage ../development/python-modules/pytest-env { }; 6414 6414 6415 + pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { }; 6416 + 6415 6417 pytest-expect = callPackage ../development/python-modules/pytest-expect { }; 6416 6418 6417 6419 pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };