Merge pull request #99380 from JamieMagee/abodepy

pythonPackages.{abodepy,lomond}: init
This commit is contained in:
Martin Weinelt 2020-10-04 16:42:03 +02:00 committed by GitHub
commit 12e5973c3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 1 deletions

View file

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, colorlog, lomond
, requests, isPy3k, requests-mock }:
buildPythonPackage rec {
pname = "abodepy";
version = "1.2.0";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "MisterWil";
repo = pname;
rev = "v${version}";
sha256 = "0m2cm90yy7fq7yrjyd999m48gqri65ifi7f6hc0s3pv2hfj89yj0";
};
propagatedBuildInputs = [ colorlog lomond requests ];
checkInputs = [ pytestCheckHook requests-mock ];
meta = with lib; {
homepage = "https://github.com/MisterWil/abodepy";
description = "An Abode alarm Python library running on Python 3";
license = licenses.mit;
maintainers = with maintainers; [ jamiemagee ];
};
}

View file

@ -0,0 +1,27 @@
{ buildPythonPackage, freezegun, fetchFromGitHub, lib, pytestCheckHook
, pytest-mock, pytestrunner, six, tornado_4 }:
buildPythonPackage rec {
pname = "lomond";
version = "0.3.3";
src = fetchFromGitHub {
owner = "wildfoundry";
repo = "dataplicity-${pname}";
rev = "b30dad3cc38d5ff210c5dd01f8c3c76aa6c616d1";
sha256 = "0lydq0imala08wxdyg2iwhqa6gcdrn24ah14h91h2zcxjhjk4gv8";
};
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ six ];
checkInputs = [ pytestCheckHook freezegun pytest-mock tornado_4 ];
# Makes HTTP requests
disabledTests = [ "test_proxy" "test_live" ];
meta = with lib; {
description = "Websocket Client Library";
homepage = "https://github.com/wildfoundry/dataplicity-lomond";
license = licenses.bsd3;
maintainers = with maintainers; [ jamiemagee ];
};
}

View file

@ -4,7 +4,7 @@
{
version = "0.115.6";
components = {
"abode" = ps: with ps; [ ]; # missing inputs: abodepy
"abode" = ps: with ps; [ abodepy ];
"accuweather" = ps: with ps; [ ]; # missing inputs: accuweather
"acer_projector" = ps: with ps; [ pyserial ];
"acmeda" = ps: with ps; [ ]; # missing inputs: aiopulse

View file

@ -146,6 +146,8 @@ in {
aafigure = callPackage ../development/python-modules/aafigure { };
abodepy = callPackage ../development/python-modules/abodepy { };
absl-py = callPackage ../development/python-modules/absl-py { };
accupy = callPackage ../development/python-modules/accupy { };
@ -3498,6 +3500,8 @@ in {
logzero = callPackage ../development/python-modules/logzero { };
lomond = callPackage ../development/python-modules/lomond { };
loo-py = callPackage ../development/python-modules/loo-py { };
lpod = callPackage ../development/python-modules/lpod { };