Skip to content

Commit

Permalink
python3Packages.brother: init at 0.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and Jon committed Aug 4, 2020
1 parent 786d9a3 commit bee771f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/brother/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
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

0 comments on commit bee771f

Please sign in to comment.