2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-02-13 14:23:35 +00:00
|
|
|
, beautifulsoup4
|
2021-01-15 22:18:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-02-13 14:23:35 +00:00
|
|
|
, pkce
|
2021-03-09 03:18:52 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymyq";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "3.1.3";
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arraylabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "sha256-V2u2wUSPwiF6o6OWhQVKiHtzhn0/rzyM6e2+a+D7UNA=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-02-13 14:23:35 +00:00
|
|
|
beautifulsoup4
|
|
|
|
pkce
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-08-11 14:56:57 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
pythonImportsCheck = [ "pymyq" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for MyQ API";
|
|
|
|
homepage = "https://github.com/arraylabs/pymyq";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|