From 760e367b6d449403d7c3ae62dc6c819e7c1313a5 Mon Sep 17 00:00:00 2001 From: Matt Votava Date: Sat, 24 Oct 2020 07:26:06 -0700 Subject: [PATCH] python3Packages.zigpy-znp: init at 0.2.2, add tests --- .../python-modules/zigpy-znp/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/zigpy-znp/default.nix diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix new file mode 100644 index 000000000000..7a942a213720 --- /dev/null +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -0,0 +1,55 @@ +{ stdenv +, async-timeout +, asynctest +, buildPythonPackage +, coloredlogs +, coveralls +, fetchFromGitHub +, pyserial +, pyserial-asyncio +, pytest-asyncio +, pytest-mock +, pytest-timeout +, pytestcov +, pytestCheckHook +, voluptuous +, zigpy }: + +buildPythonPackage rec { + pname = "zigpy-znp"; + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "zha-ng"; + repo = "zigpy-znp"; + rev = "v${version}"; + sha256 = "a98RYPvcYE1NPERmPo1jPwMf86N+0297u4pOKuaB6u4="; + }; + + propagatedBuildInputs = [ + async-timeout + coloredlogs + pyserial + pyserial-asyncio + voluptuous + zigpy + ]; + + checkInputs = [ + asynctest + coveralls + pytest-asyncio + pytest-mock + pytest-timeout + pytestcov + pytestCheckHook + ]; + + meta = with stdenv.lib; { + description = "A library for zigpy which communicates with TI ZNP radios"; + homepage = "https://github.com/zha-ng/zigpy-znp"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ mvnetbiz ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ec3fdac387dd..c9cbe4133e0c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7808,6 +7808,8 @@ in { zigpy-zigate = callPackage ../development/python-modules/zigpy-zigate { }; + zigpy-znp = callPackage ../development/python-modules/zigpy-znp { }; + zimports = callPackage ../development/python-modules/zimports { }; zipfile36 = callPackage ../development/python-modules/zipfile36 { };