01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
43 lines
886 B
Nix
43 lines
886 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, requests
|
|
, websocket-client
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyskyqremote";
|
|
version = "0.3.20";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RogerSelwyn";
|
|
repo = "skyq_remote";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-HLiLFuMJL9iXv7FckoVVK02jOhSRMrU8FohkD4gKjmM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
websocket-client
|
|
xmltodict
|
|
];
|
|
|
|
# Project has no tests, only a test script which looks like anusage example
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pyskyqremote"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for accessing SkyQ boxes";
|
|
homepage = "https://github.com/RogerSelwyn/skyq_remote";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|