mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
Merge master into staging-next
This commit is contained in:
56
pkgs/development/python-modules/aiohomekit/default.nix
Normal file
56
pkgs/development/python-modules/aiohomekit/default.nix
Normal file
@@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, poetry
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
, zeroconf
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohomekit";
|
||||
version = "0.2.60";
|
||||
format = "pyproject";
|
||||
disabled = pythonAtLeast "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Jc2k";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "03llk5i22hq163x568kz0qar5h0sda8f8cxbmgya6z2dcxv0a83p";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
zeroconf
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-aiohttp
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Some test requires network access
|
||||
disabledTests = [
|
||||
"test_remove_pairing"
|
||||
"test_pair"
|
||||
"test_add_and_remove_pairings"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "aiohomekit" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module that implements the HomeKit protocol";
|
||||
longDescription = ''
|
||||
This Python library implements the HomeKit protocol for controlling
|
||||
Homekit accessories.
|
||||
'';
|
||||
homepage = "https://github.com/Jc2k/aiohomekit";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/aioshelly/default.nix
Normal file
34
pkgs/development/python-modules/aioshelly/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, netifaces
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioshelly";
|
||||
version = "0.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "home-assistant-libs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0177psqfib70vcvf3cg8plbwrilh770cqg8b547icdh5lnqv70b1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
netifaces
|
||||
];
|
||||
|
||||
# Project has no test
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "aioshelly" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to control Shelly";
|
||||
homepage = "https://github.com/home-assistant-libs/aioshelly";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
28
pkgs/development/python-modules/python-hpilo/default.nix
Normal file
28
pkgs/development/python-modules/python-hpilo/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, utils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-hpilo";
|
||||
version = "4.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "seveas";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1dk5xswydw7nmn9hlna1xca1mzcas9qv2kmid5yx8kvk3hjqci9v";
|
||||
};
|
||||
|
||||
# Most tests requires an actual iLO to run
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "hpilo" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to access the HP iLO XML interface";
|
||||
homepage = "https://seveas.github.io/python-hpilo/";
|
||||
license = with licenses; [ asl20 gpl3Plus ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
32
pkgs/development/python-modules/utils/default.nix
Normal file
32
pkgs/development/python-modules/utils/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "utils";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "haaksmash";
|
||||
repo = "pyutils";
|
||||
rev = version;
|
||||
sha256 = "07pr39cfw5ayzkp6h53y7lfpd0w19pphsdzsf100fsyy3npavgbr";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "utils" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python set of utility functions and objects";
|
||||
homepage = "https://github.com/haaksmash/pyutils";
|
||||
license = with licenses; [ lgpl3Only ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,10 @@
|
||||
{ lib, stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
, voluptuous
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "voluptuous-serialize";
|
||||
@@ -6,28 +12,24 @@ buildPythonPackage rec {
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1r7avibzf009h5rlh7mbh1fc01daligvi2axjn5qxh810g5igfn6";
|
||||
src = fetchFromGitHub {
|
||||
owner = "home-assistant-libs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1km2y1xaagkdvsy3bmi1sc040x5yyfdw6llmwdv9z8nz67m9v1ya";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = [ voluptuous ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
voluptuous
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
# no tests in PyPI tarball
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "voluptuous_serialize" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/balloob/voluptuous-serialize";
|
||||
homepage = "https://github.com/home-assistant-libs/voluptuous-serialize";
|
||||
license = licenses.asl20;
|
||||
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
|
||||
maintainers = with maintainers; [ etu ];
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xknx";
|
||||
version = "0.16.0";
|
||||
version = "0.16.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "XKNX";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0a9pxah37ml2a5qpc841ps22d256003i8d4mix2gh7nwxab2qp8j";
|
||||
sha256 = "0nma0fq67p9c90b6s5v7n4s6j94sdiwqf8rk1k2vfc6nxxn1jfll";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zigpy";
|
||||
version = "0.29.0";
|
||||
version = "0.30.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy";
|
||||
rev = version;
|
||||
sha256 = "1r4i2ya9f241rls9mi24dksx4srrzi8agshnqy12rclxlh7qb1aw";
|
||||
sha256 = "14qyxm7bj62fsvxfp6x3r1ygjlv7q3jjvq6gzj30na78x1fqr9g1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
Reference in New Issue
Block a user