Merge pull request #123166 from fabaff/pyobihai
This commit is contained in:
commit
5cd6410fef
34
pkgs/development/python-modules/pyobihai/default.nix
Normal file
34
pkgs/development/python-modules/pyobihai/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue