anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / routeros-api / default.nix
blob2d6208ce27b1edd07c2e44ddf80c986919001450
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   mock,
7   setuptools,
8   tox,
9 }:
11 buildPythonPackage rec {
12   pname = "routeros-api";
13   version = "0.18.1";
14   pyproject = true;
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "socialwifi";
20     repo = "routeros-api";
21     rev = "refs/tags/${version}";
22     hash = "sha256-6IpoByG3YhHh2dPS18ufaoI1vzTZBsZa9WNHS/fImrg=";
23   };
25   build-system = [ setuptools ];
27   nativeCheckInputs = [
28     mock
29     tox
30   ];
32   pythonImportsCheck = [ "routeros_api" ];
34   meta = with lib; {
35     description = "Python API to RouterBoard devices produced by MikroTik";
36     homepage = "https://github.com/socialwifi/RouterOS-api";
37     changelog = "https://github.com/socialwifi/RouterOS-api/blob/${version}/CHANGELOG.md";
38     license = licenses.mit;
39     maintainers = with maintainers; [ quentin ];
40   };