2021-01-13 22:09:39 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-02-07 12:45:49 +01:00
|
|
|
, beautifulsoup4
|
2021-01-13 22:09:39 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-02-07 12:45:49 +01:00
|
|
|
, pkce
|
2023-09-27 12:21:06 +02:00
|
|
|
, poetry-core
|
2021-03-03 23:28:59 +01:00
|
|
|
, pythonOlder
|
2021-01-13 22:09:39 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-10-20 21:55:53 -07:00
|
|
|
pname = "python-myq";
|
2023-10-12 10:15:09 +02:00
|
|
|
version = "3.1.13";
|
2023-09-27 12:21:06 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
2021-03-03 23:28:59 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-13 22:09:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-09-27 12:21:06 +02:00
|
|
|
owner = "Python-MyQ";
|
|
|
|
repo = "Python-MyQ";
|
2022-05-04 09:42:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-12 10:15:09 +02:00
|
|
|
hash = "sha256-kW03swRXZdkh45I/up/FIxv0WGBRqTlDt1X71Ow/hrg=";
|
2021-01-13 22:09:39 +01:00
|
|
|
};
|
|
|
|
|
2023-09-27 12:21:06 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-01-13 22:09:39 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-02-07 12:45:49 +01:00
|
|
|
beautifulsoup4
|
|
|
|
pkce
|
2021-01-13 22:09:39 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-08-10 15:54:13 +02:00
|
|
|
|
2022-12-16 15:40:08 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pymyq"
|
|
|
|
];
|
2021-01-13 22:09:39 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for MyQ API";
|
2023-09-27 12:21:06 +02:00
|
|
|
homepage = "https://github.com/Python-MyQ/Python-MyQ";
|
|
|
|
changelog = "https://github.com/Python-MyQ/Python-MyQ/releases/tag/v${version}";
|
2021-01-13 22:09:39 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|