python3Packages.devolo-plc-api: init at 0.6.3

main
Fabian Affolter 3 years ago
parent 293e6f0ce5
commit 771d7823a4
  1. 59
      pkgs/development/python-modules/devolo-plc-api/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, protobuf
, pytest-asyncio
, pytest-httpx
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools-scm
, zeroconf
}:
buildPythonPackage rec {
pname = "devolo-plc-api";
version = "0.6.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "2Fake";
repo = "devolo_plc_api";
rev = "v${version}";
sha256 = "6EIT6ifC4M4qj/2dZYVZ3fb3bPs25R7IEh/MduYTTkU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
httpx
protobuf
zeroconf
];
checkInputs = [
pytest-asyncio
pytest-httpx
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"devolo_plc_api"
];
meta = with lib; {
description = "Python module to interact with Devolo PLC devices";
homepage = "https://github.com/2Fake/devolo_plc_api";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}

@ -2028,6 +2028,8 @@ in {
devolo-home-control-api = callPackage ../development/python-modules/devolo-home-control-api { };
devolo-plc-api = callPackage ../development/python-modules/devolo-plc-api { };
devpi-common = callPackage ../development/python-modules/devpi-common { };
devtools = callPackage ../development/python-modules/devtools { };

Loading…
Cancel
Save