Merge pull request #99380 from JamieMagee/abodepy
pythonPackages.{abodepy,lomond}: init
This commit is contained in:
commit
12e5973c3f
26
pkgs/development/python-modules/abodepy/default.nix
Normal file
26
pkgs/development/python-modules/abodepy/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/development/python-modules/lomond/default.nix
Normal file
27
pkgs/development/python-modules/lomond/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
version = "0.115.6";
|
version = "0.115.6";
|
||||||
components = {
|
components = {
|
||||||
"abode" = ps: with ps; [ ]; # missing inputs: abodepy
|
"abode" = ps: with ps; [ abodepy ];
|
||||||
"accuweather" = ps: with ps; [ ]; # missing inputs: accuweather
|
"accuweather" = ps: with ps; [ ]; # missing inputs: accuweather
|
||||||
"acer_projector" = ps: with ps; [ pyserial ];
|
"acer_projector" = ps: with ps; [ pyserial ];
|
||||||
"acmeda" = ps: with ps; [ ]; # missing inputs: aiopulse
|
"acmeda" = ps: with ps; [ ]; # missing inputs: aiopulse
|
||||||
|
@ -146,6 +146,8 @@ in {
|
|||||||
|
|
||||||
aafigure = callPackage ../development/python-modules/aafigure { };
|
aafigure = callPackage ../development/python-modules/aafigure { };
|
||||||
|
|
||||||
|
abodepy = callPackage ../development/python-modules/abodepy { };
|
||||||
|
|
||||||
absl-py = callPackage ../development/python-modules/absl-py { };
|
absl-py = callPackage ../development/python-modules/absl-py { };
|
||||||
|
|
||||||
accupy = callPackage ../development/python-modules/accupy { };
|
accupy = callPackage ../development/python-modules/accupy { };
|
||||||
@ -3498,6 +3500,8 @@ in {
|
|||||||
|
|
||||||
logzero = callPackage ../development/python-modules/logzero { };
|
logzero = callPackage ../development/python-modules/logzero { };
|
||||||
|
|
||||||
|
lomond = callPackage ../development/python-modules/lomond { };
|
||||||
|
|
||||||
loo-py = callPackage ../development/python-modules/loo-py { };
|
loo-py = callPackage ../development/python-modules/loo-py { };
|
||||||
|
|
||||||
lpod = callPackage ../development/python-modules/lpod { };
|
lpod = callPackage ../development/python-modules/lpod { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user