git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #116505 from fabaff/bump-brother

python3Packages.brother: 0.2.1 -> 0.2.2

commit22e17d823d6f3591d7ad3ff7e120a3f1814d71e4 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateTue 16 Mar 2021, 18:50 (6 years ago) parent6440e2e1b6bac8
3 files changed+56−13
pkgs/development/python-modules/brother/default.nix+23−13 pkgs/development/python-modules/pytest-error-for-skips/default.nix+31 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/brother/default.nix+23−13
@@ -1,25 +1,33 @@
1−{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
24, 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+}:
413
514buildPythonPackage rec {
615 pname = "brother";
7− version = "0.2.1";
16+ version = "0.2.2";
817 disabled = pythonOlder "3.8";
918
1019 src = fetchFromGitHub {
1120 owner = "bieniu";
1221 repo = pname;
1322 rev = version;
14− sha256 = "sha256-yOloGkOVhXcTt0PAjf3yWUItN1okO94DndRFsImiuz4=";
23+ sha256 = "sha256-vIefcL3K3ZbAUxMFM7gbbTFdrnmufWZHcq4OA19SYXE=";
1524 };
1625
17− # pytest-error-for-skips is not packaged
1826 postPatch = ''
1927 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" ""
2331 '';
2432
2533 propagatedBuildInputs = [
@@ -27,16 +35,18 @@ buildPythonPackage rec {
2735 ];
2836
2937 checkInputs = [
30− asynctest
31− pytestcov
32− pytestrunner
3338 pytest-asyncio
34− pytest-trio
39+ pytest-error-for-skips
40+ pytest-runner
3541 pytest-tornasync
42+ pytest-trio
43+ pytestCheckHook
3644 ];
3745
46+ pythonImportsCheck = [ "brother" ];
47+
3848 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";
4050 homepage = "https://github.com/bieniu/brother";
4151 license = licenses.asl20;
4252 maintainers = with maintainers; [ hexa ];
pkgs/development/python-modules/pytest-error-for-skips/default.nixnew file+31
@@ -0,0 +1,31 @@
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+}
pkgs/top-level/python-packages.nix+2
@@ -6412,6 +6412,8 @@ in {
64126412
64136413 pytest-env = callPackage ../development/python-modules/pytest-env { };
64146414
6415+ pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };
6416+
64156417 pytest-expect = callPackage ../development/python-modules/pytest-expect { };
64166418
64176419 pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };