depot/third_party/nixpkgs/pkgs/development/python-modules/pyskyqremote/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

45 lines
897 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pycountry
, pythonOlder
, requests
, websocket-client
, xmltodict
}:
buildPythonPackage rec {
pname = "pyskyqremote";
version = "0.2.52";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "RogerSelwyn";
repo = "skyq_remote";
rev = version;
sha256 = "sha256-iVXi9wopDjtZcqoEWYfg1oPx4RV3e3b9P07rC8ftz9U=";
};
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 ];
};
}