6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
51 lines
1,013 B
Nix
51 lines
1,013 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, dnspython
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pykaleidescape";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SteveEasley";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-KM/gtpsQ27QZz2uI1t/yVN5no0zp9LZag1duAJzK55g=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
dnspython
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"kaleidescape"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test requires network access
|
|
"test_resolve_succeeds"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for controlling Kaleidescape devices";
|
|
homepage = "https://github.com/SteveEasley/pykaleidescape";
|
|
changelog = "https://github.com/SteveEasley/pykaleidescape/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|