Merge pull request #123166 from fabaff/pyobihai

This commit is contained in:
Martin Weinelt 2021-05-17 17:38:08 +02:00 committed by GitHub
commit 5cd6410fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pyobihai";
version = "1.3.1";
disabled = pythonOlder "3.6";
# GitHub release, https://github.com/dshokouhi/pyobihai/issues/10
src = fetchPypi {
inherit pname version;
sha256 = "1vvf5if57dfd091a7fb5rvx63hvf0isrx28j72nj2aav1as460qp";
};
propagatedBuildInputs = [
requests
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pyobihai" ];
meta = with lib; {
description = "Python package to interact with Obihai devices";
homepage = "https://github.com/dshokouhi/pyobihai";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -582,7 +582,7 @@
"nx584" = ps: with ps; [ pynx584 ];
"nzbget" = ps: with ps; [ ]; # missing inputs: pynzbgetapi
"oasa_telematics" = ps: with ps; [ ]; # missing inputs: oasatelematics
"obihai" = ps: with ps; [ ]; # missing inputs: pyobihai
"obihai" = ps: with ps; [ pyobihai ];
"octoprint" = ps: with ps; [ aiohttp-cors netdisco pyroute2 zeroconf ];
"oem" = ps: with ps; [ ]; # missing inputs: oemthermostat
"ohmconnect" = ps: with ps; [ defusedxml ];

View file

@ -5927,6 +5927,8 @@ in {
pynzb = callPackage ../development/python-modules/pynzb { };
pyobihai = callPackage ../development/python-modules/pyobihai { };
pyocr = callPackage ../development/python-modules/pyocr {
tesseract = pkgs.tesseract4;
};