diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-12-07 13:49:08 +0100 |
---|---|---|
committer | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-12-07 14:35:53 +0100 |
commit | 8ca90ac70f07d1d43a505fdcb8ee4337cfc3d6fe (patch) | |
tree | df09de724e2cfd0db04f7f02e378d1388d967ce7 /pkgs/development | |
parent | 7a500f65c4f74884b75256bd446cbe392f066f2d (diff) |
python311Packages.pyasuswrt: init at 0.1.20
Library for communication with ASUSWRT routers via HTTP https://github.com/ollo69/pyasuswrt
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pyasuswrt/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyasuswrt/default.nix b/pkgs/development/python-modules/pyasuswrt/default.nix new file mode 100644 index 0000000000000..7a3eda4fb33d6 --- /dev/null +++ b/pkgs/development/python-modules/pyasuswrt/default.nix @@ -0,0 +1,45 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "pyasuswrt"; + version = "0.1.20"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ollo69"; + repo = "pyasuswrt"; + rev = "refs/tags/v${version}"; + hash = "sha256-QsqyijOYEtp6k2rsDheGMVij4s5a5ZfUfsLIq+BaYV8="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Tests require physical hardware + doCheck = false; + + pythonImportsCheck = [ + "pyasuswrt" + ]; + + meta = with lib; { + description = "Library for communication with ASUSWRT routers via HTTP"; + homepage = "https://github.com/ollo69/pyasuswrt"; + changelog = "https://github.com/ollo69/pyasuswrt/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} |