Merge pull request #121153 from fabaff/bump-denonavr
This commit is contained in:
commit
144dc280e3
38
pkgs/development/python-modules/asyncstdlib/default.nix
Normal file
38
pkgs/development/python-modules/asyncstdlib/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, typing-extensions
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "asyncstdlib";
|
||||||
|
version = "3.9.1";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
format = "flit";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "maxfischer2781";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "13ranr7zi61w52vfrxwkf32bbhk88j0r5c5z2x2h5vw268001lk2";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "asyncstdlib" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python library that extends the Python asyncio standard library";
|
||||||
|
homepage = "https://asyncstdlib.readthedocs.io/";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,33 +1,51 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces
|
{ lib
|
||||||
, pytestCheckHook, testtools, requests-mock }:
|
, asyncstdlib
|
||||||
|
, attrs
|
||||||
|
, buildPythonPackage
|
||||||
|
, defusedxml
|
||||||
|
, fetchFromGitHub
|
||||||
|
, httpx
|
||||||
|
, netifaces
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-httpx
|
||||||
|
, pytest-timeout
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "denonavr";
|
pname = "denonavr";
|
||||||
version = "0.9.10";
|
version = "0.10.6";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "scarface-4711";
|
owner = "scarface-4711";
|
||||||
repo = "denonavr";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-3ap8F3ayBTpaR98md+gT0+hkIWlFBNxStTGWT5AL//A=";
|
sha256 = "sha256-jcbjExcyZSE+qVPuYiMmuneugDMBoYz4apY/lz4JnMI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
asyncstdlib
|
||||||
|
attrs
|
||||||
|
defusedxml
|
||||||
|
httpx
|
||||||
netifaces
|
netifaces
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
testtools
|
pytest-httpx
|
||||||
requests-mock
|
pytest-timeout
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "denonavr" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Automation Library for Denon AVR receivers";
|
||||||
homepage = "https://github.com/scarface-4711/denonavr";
|
homepage = "https://github.com/scarface-4711/denonavr";
|
||||||
description = "Automation Library for Denon AVR receivers.";
|
license = with licenses; [ mit ];
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ colemickens ];
|
maintainers = with maintainers; [ colemickens ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -217,6 +217,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"deconz"
|
"deconz"
|
||||||
"default_config"
|
"default_config"
|
||||||
"demo"
|
"demo"
|
||||||
|
"denonavr"
|
||||||
"derivative"
|
"derivative"
|
||||||
"device_automation"
|
"device_automation"
|
||||||
"device_sun_light_trigger"
|
"device_sun_light_trigger"
|
||||||
|
@ -557,6 +557,8 @@ in {
|
|||||||
|
|
||||||
asyncssh = callPackage ../development/python-modules/asyncssh { };
|
asyncssh = callPackage ../development/python-modules/asyncssh { };
|
||||||
|
|
||||||
|
asyncstdlib = callPackage ../development/python-modules/asyncstdlib { };
|
||||||
|
|
||||||
async_stagger = callPackage ../development/python-modules/async_stagger { };
|
async_stagger = callPackage ../development/python-modules/async_stagger { };
|
||||||
|
|
||||||
asynctest = callPackage ../development/python-modules/asynctest { };
|
asynctest = callPackage ../development/python-modules/asynctest { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user