depot/third_party/nixpkgs/pkgs/development/python-modules/pydaikin/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

57 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
freezegun,
netifaces,
pytest-aiohttp,
pytestCheckHook,
pythonOlder,
urllib3,
setuptools,
tenacity,
}:
buildPythonPackage rec {
pname = "pydaikin";
version = "2.13.7";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "fredrike";
repo = "pydaikin";
rev = "refs/tags/v${version}";
hash = "sha256-pLr878LbflRlHzDjarwDLQFHbRZjRvlAZEqP1tfVBNA=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
netifaces
urllib3
tenacity
];
doCheck = false; # tests fail and upstream does not seem to run them either
nativeCheckInputs = [
freezegun
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "pydaikin" ];
meta = with lib; {
description = "Python Daikin HVAC appliances interface";
homepage = "https://github.com/fredrike/pydaikin";
changelog = "https://github.com/fredrike/pydaikin/releases/tag/v${version}";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
mainProgram = "pydaikin";
};
}