46 lines
898 B
Nix
46 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pycountry
|
|
, pythonOlder
|
|
, requests
|
|
, websocket-client
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyskyqremote";
|
|
version = "0.2.56";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RogerSelwyn";
|
|
repo = "skyq_remote";
|
|
rev = version;
|
|
sha256 = "0lbg3sh907k9q861k5739iva9fl4w067fsdsn1d5d4nay2xqdbrq";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pycountry
|
|
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 ];
|
|
};
|
|
}
|