depot/third_party/nixpkgs/pkgs/development/python-modules/devolo-plc-api/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

61 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, httpx
, protobuf
, pytest-asyncio
, pytest-httpx
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools-scm
, zeroconf
}:
buildPythonPackage rec {
pname = "devolo-plc-api";
version = "0.9.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "2Fake";
repo = "devolo_plc_api";
rev = "v${version}";
sha256 = "sha256-FBcDEEWgfV+OgHriSOZKWZPt0O89nDe2CsY3oqX/6zo=";
};
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 ];
};
}