Diff: https://github.com/Moustachauve/pytechnove/compare/refs/tags/v1.3.1...v2.0.0 Changelog: https://github.com/Moustachauve/pytechnove/releases/tag/v2.0.0
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aresponses,
|
|
awesomeversion,
|
|
backoff,
|
|
buildPythonPackage,
|
|
cachetools,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-technove";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Moustachauve";
|
|
repo = "pytechnove";
|
|
tag = "v${version}";
|
|
hash = "sha256-LgrydBgx68HP8yaywkMMeS71VqhilYGODppBZbdkssQ=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
awesomeversion
|
|
backoff
|
|
cachetools
|
|
yarl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "technove" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to interact with TechnoVE local device API";
|
|
homepage = "https://github.com/Moustachauve/pytechnove";
|
|
changelog = "https://github.com/Moustachauve/pytechnove/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|