depot/third_party/nixpkgs/pkgs/development/python-modules/pymelcloud/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

45 lines
834 B
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pymelcloud";
version = "2.11.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "vilppuvuorinen";
repo = pname;
rev = "v${version}";
sha256 = "1q6ny58cn9qy86blxbk6l2iklab7y11b734l7yb1bp35dmy27w26";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
asynctest
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"pymelcloud"
];
meta = with lib; {
description = "Python module for interacting with MELCloud";
homepage = "https://github.com/vilppuvuorinen/pymelcloud";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}