Merge pull request #110587 from fabaff/aioasuswrt
This commit is contained in:
commit
2f5e450352
52
pkgs/development/python-modules/aioasuswrt/default.nix
Normal file
52
pkgs/development/python-modules/aioasuswrt/default.nix
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{ lib
|
||||||
|
, asyncssh
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aioasuswrt";
|
||||||
|
version = "1.3.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kennedyshead";
|
||||||
|
repo = pname;
|
||||||
|
rev = "V${version}";
|
||||||
|
sha256 = "0bzl11224vny4p9vhi1n5s9p04kfavdzs9xkq5qimbisz9sg4ysj";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# Remove pytest-runner, https://github.com/kennedyshead/aioasuswrt/pull/63
|
||||||
|
url = "https://github.com/kennedyshead/aioasuswrt/pull/63/commits/e7923927648d5d8daccac1716db86db2a45fcb34.patch";
|
||||||
|
sha256 = "09xzs3hjr3133li6b7lr58n090r00kaxi9hx1fms2zn0ai4xwp9d";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace "--cov-report html" "" \
|
||||||
|
--replace "--cov-report term-missing" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ asyncssh ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aioasuswrt" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module for Asuswrt";
|
||||||
|
homepage = "https://github.com/kennedyshead/aioasuswrt";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -52,7 +52,7 @@
|
|||||||
"arwn" = ps: with ps; [ aiohttp-cors paho-mqtt ];
|
"arwn" = ps: with ps; [ aiohttp-cors paho-mqtt ];
|
||||||
"asterisk_cdr" = ps: with ps; [ ]; # missing inputs: asterisk_mbox
|
"asterisk_cdr" = ps: with ps; [ ]; # missing inputs: asterisk_mbox
|
||||||
"asterisk_mbox" = ps: with ps; [ ]; # missing inputs: asterisk_mbox
|
"asterisk_mbox" = ps: with ps; [ ]; # missing inputs: asterisk_mbox
|
||||||
"asuswrt" = ps: with ps; [ ]; # missing inputs: aioasuswrt
|
"asuswrt" = ps: with ps; [ aioasuswrt ];
|
||||||
"atag" = ps: with ps; [ ]; # missing inputs: pyatag
|
"atag" = ps: with ps; [ ]; # missing inputs: pyatag
|
||||||
"aten_pe" = ps: with ps; [ atenpdu ];
|
"aten_pe" = ps: with ps; [ atenpdu ];
|
||||||
"atome" = ps: with ps; [ ]; # missing inputs: pyatome
|
"atome" = ps: with ps; [ ]; # missing inputs: pyatome
|
||||||
|
@ -204,9 +204,11 @@ in {
|
|||||||
|
|
||||||
aioambient = callPackage ../development/python-modules/aioambient { };
|
aioambient = callPackage ../development/python-modules/aioambient { };
|
||||||
|
|
||||||
|
ailment = callPackage ../development/python-modules/ailment { };
|
||||||
|
|
||||||
aioamqp = callPackage ../development/python-modules/aioamqp { };
|
aioamqp = callPackage ../development/python-modules/aioamqp { };
|
||||||
|
|
||||||
ailment = callPackage ../development/python-modules/ailment { };
|
aioasuswrt = callPackage ../development/python-modules/aioasuswrt { };
|
||||||
|
|
||||||
aiocoap = callPackage ../development/python-modules/aiocoap { };
|
aiocoap = callPackage ../development/python-modules/aiocoap { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user