depot/third_party/nixpkgs/pkgs/development/python-modules/pyeconet/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

47 lines
907 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pyeconet";
version = "0.1.18";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "w1ll1am23";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-nKXYjv1a6nEuy8X0HnLSrvQDV2XVQhQuEm/gqnEVaoY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
paho-mqtt
aiohttp
];
# Tests require credentials
doCheck = false;
pythonImportsCheck = [
"pyeconet"
];
meta = with lib; {
description = "Python interface to the EcoNet API";
homepage = "https://github.com/w1ll1am23/pyeconet";
changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}