Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.brother: init at 0.1.14 #94568

Merged
merged 4 commits into from Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/brother/default.nix
@@ -0,0 +1,36 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, pysnmp
, asynctest, pytestcov, pytestrunner, pytest-asyncio, pytest-trio, pytest-tornasync }:

buildPythonPackage rec {
pname = "brother";
version = "0.1.14";
disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "11pkr30bxrzgbz6bi42dyhav6qhr7rz9fb6a13297g7wa77jn4r4";
};

propagatedBuildInputs = [
pysnmp
];

checkInputs = [
asynctest
pytestcov
pytestrunner
pytest-asyncio
pytest-trio
pytest-tornasync
];

meta = with lib; {
description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP.";
homepage = "https://github.com/bieniu/brother";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/pytest-tornasync/default.nix
@@ -0,0 +1,38 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, pytest, tornado }:

buildPythonPackage rec {
pname = "pytest-tornasync";
version = "0.6.0.post2";
jonringer marked this conversation as resolved.
Show resolved Hide resolved
disabled = isPy27;

src = fetchFromGitHub {
owner = "eukaryote";
repo = pname;
# upstream does not keep git tags in sync with pypy releases
# https://github.com/eukaryote/pytest-tornasync/issues/9
rev = "c5f013f1f727f1ca1fcf8cc748bba7f4a2d79e56";
sha256 = "04cg1cfrr55dbi8nljkpcsc103i5c6p0nr46vjr0bnxgkxx03x36";
};

propagatedBuildInputs = [
pytest
tornado
];

checkInputs = [
pytest
tornado
];

checkPhase = ''
pytest test
'';

meta = with lib; {
description = "py.test plugin for testing Python 3.5+ Tornado code";
homepage = "https://github.com/eukaryote/pytest-tornasync";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/pytest-trio/default.nix
@@ -0,0 +1,39 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, trio, async_generator, hypothesis, outcome, pytest, pytestcov }:

buildPythonPackage rec {
pname = "pytest-trio";
version = "0.6.0";
disabled = pythonOlder "3.5";

src = fetchFromGitHub {
owner = "python-trio";
repo = pname;
rev = "v${version}";
sha256 = "09v2031yxm8ryhq12205ldcck76n3wwqhjjsgfmn6dxfiqb0vbw9";
};

propagatedBuildInputs = [
trio
async_generator
outcome
pytest
];

checkInputs = [
pytest
pytestcov
hypothesis
];

checkPhase = ''
pytest
'';

meta = with lib; {
description = "Pytest plugin for trio";
homepage = "https://github.com/python-trio/pytest-trio";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -93,7 +93,7 @@
"bond" = ps: with ps; [ ]; # missing inputs: bond-home
"braviatv" = ps: with ps; [ bravia-tv];
"broadlink" = ps: with ps; [ broadlink];
"brother" = ps: with ps; [ ]; # missing inputs: brother
"brother" = ps: with ps; [ brother];
"brottsplatskartan" = ps: with ps; [ ]; # missing inputs: brottsplatskartan
"browser" = ps: with ps; [ ];
"brunt" = ps: with ps; [ ]; # missing inputs: brunt
Expand Down
6 changes: 6 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -543,6 +543,8 @@ in {

breezy = callPackage ../development/python-modules/breezy { };

brother = callPackage ../development/python-modules/brother { };

build = callPackage ../development/python-modules/build { };

ciso8601 = callPackage ../development/python-modules/ciso8601 { };
Expand Down Expand Up @@ -1420,6 +1422,10 @@ in {

pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };

pytest-tornasync = callPackage ../development/python-modules/pytest-tornasync { };

pytest-trio = callPackage ../development/python-modules/pytest-trio { };

pytest-twisted = callPackage ../development/python-modules/pytest-twisted { };

pytest-xprocess = callPackage ../development/python-modules/pytest-xprocess { };
Expand Down