Merge pull request #36108 from peterhoeg/p/ha-deps
home-assistant: add multiple dependencies
This commit is contained in:
26
pkgs/development/python-modules/aiohttp-jinja2/default.nix
Normal file
26
pkgs/development/python-modules/aiohttp-jinja2/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-jinja2";
|
||||
version = "0.16.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ps182yrc5g9ph55927a7ssqx6m9kx0bivfxpaj8sa3znrdkl94d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp jinja2 ];
|
||||
|
||||
checkInputs = [ pytest pytest-aiohttp ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Jinja2 support for aiohttp";
|
||||
homepage = https://github.com/aio-libs/aiohttp_jinja2;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/deluge-client/default.nix
Normal file
21
pkgs/development/python-modules/deluge-client/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "deluge-client";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "048zfidv08sr4hivdd3xxf1pywhqbnszj5qcn51h2f4y1588fhpf";
|
||||
};
|
||||
|
||||
# it will try to connect to a running instance
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight pure-python rpc client for deluge";
|
||||
homepage = https://github.com/JohnDoee/deluge-client;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
28
pkgs/development/python-modules/ha-ffmpeg/default.nix
Normal file
28
pkgs/development/python-modules/ha-ffmpeg/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, ffmpeg, async-timeout }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ha-ffmpeg";
|
||||
version = "1.9";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0644j5fqw8p6li6nrnm1rw7nhvsixq1c7gik3f1yx50776yg05i8";
|
||||
};
|
||||
|
||||
buildInputs = [ ffmpeg ];
|
||||
|
||||
propagatedBuildInputs = [ async-timeout ];
|
||||
|
||||
# only manual tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/pvizeli/ha-ffmpeg;
|
||||
description = "Library for home-assistant to handle ffmpeg";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
18
pkgs/development/python-modules/miniupnpc/default.nix
Normal file
18
pkgs/development/python-modules/miniupnpc/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "miniupnpc";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ca94zz7sr2x57j218aypxqcwkr23n8js30f3yrvvqbg929nr93y";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "miniUPnP client";
|
||||
homepage = http://miniupnp.free.fr/;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/sseclient/default.nix
Normal file
24
pkgs/development/python-modules/sseclient/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, requests, six
|
||||
, backports_unittest-mock, pluggy, pytest, pytestrunner }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sseclient";
|
||||
version = "0.0.19";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7a2ea3f4c8525ae9a677bc8193df5db88e23bcaafcc34938a1ee665975703a9f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
|
||||
checkInputs = [ backports_unittest-mock pytest pytestrunner ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Client library for reading Server Sent Event streams";
|
||||
homepage = https://github.com/btubbs/sseclient;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
23
pkgs/development/python-modules/yahooweather/default.nix
Normal file
23
pkgs/development/python-modules/yahooweather/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yahooweather";
|
||||
version = "0.10";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bsxmngkpzvqm50i2cnxjzhpbdhb8s10ly8h5q08696cjihqdkpa";
|
||||
};
|
||||
|
||||
# Tests require network access
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Provide an interface to the Yahoo! Weather RSS feed";
|
||||
homepage = https://github.com/pvizeli/yahooweather;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user