Merge pull request #231701 from quentinmit/routeros-api

This commit is contained in:
Janik 2023-06-26 21:04:54 +02:00 committed by GitHub
commit 3eace898b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, mock
, tox
}:
buildPythonPackage rec {
pname = "routeros-api";
version = "0.17.0";
# N.B. The version published on PyPI is missing tests.
src = fetchFromGitHub {
owner = "socialwifi";
repo = pname;
rev = version;
sha256 = "wpIfeYZ1w/yoNCHLYFVjn0O4Rb+N5lfvYzhGuN+HDTA=";
};
nativeCheckInputs = [
mock
tox
];
propagatedBuildInputs = [ six ];
meta = with lib; {
description = "Python API to RouterBoard devices produced by MikroTik.";
homepage = "https://github.com/socialwifi/RouterOS-api";
license = licenses.mit;
maintainers = with maintainers; [ quentin ];
platforms = platforms.all;
};
}

View file

@ -10813,6 +10813,8 @@ self: super: with self; {
rouge-score = callPackage ../development/python-modules/rouge-score { };
routeros-api = callPackage ../development/python-modules/routeros-api { };
routes = callPackage ../development/python-modules/routes { };
rova = callPackage ../development/python-modules/rova { };