depot/third_party/nixpkgs/pkgs/development/python-modules/pymelcloud/default.nix
Default email 2495e3f88b Project import generated by Copybara.
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
2022-01-03 17:56:52 +01:00

45 lines
832 B
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pymelcloud";
version = "2.5.6";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "vilppuvuorinen";
repo = pname;
rev = "v${version}";
sha256 = "sha256-QXOL3MftNibo1wUjz/KTQLNDk7pWL9VH/wd7LpEJOmE=";
};
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 ];
};
}