54 lines
1.0 KiB
Nix

{
aiohttp,
beautifulsoup4,
buildPythonPackage,
colorlog,
fetchFromGitHub,
langcodes,
lib,
orjson,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
yarl,
}:
buildPythonPackage rec {
pname = "aioamazondevices";
version = "4.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "chemelli74";
repo = "aioamazondevices";
tag = "v${version}";
hash = "sha256-Ch3IP7fMEDYYRFDk3eoZWjhjnkQY0qcAFJdmkoW4o/0=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
beautifulsoup4
colorlog
langcodes
orjson
yarl
];
pythonImportsCheck = [ "aioamazondevices" ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
meta = {
changelog = "https://github.com/chemelli74/aioamazondevices/blob/${src.tag}/CHANGELOG.md";
description = "Python library to control Amazon devices";
homepage = "https://github.com/chemelli74/aioamazondevices";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}