Diff: https://github.com/tago-io/sdk-python/compare/refs/tags/v4.1.1...v4.2.0 Changelog: https://github.com/tago-io/sdk-python/releases/tag/v4.2.0
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, python-socketio
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tagoio-sdk";
|
|
version = "4.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tago-io";
|
|
repo = "sdk-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ebNiEvQ1U0RLrH3OOt/oRRPElg+9jibj7fsEEd1hdmU=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"requests"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
python-dateutil
|
|
python-socketio
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
requests-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"tagoio_sdk"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for interacting with Tago.io";
|
|
homepage = "https://github.com/tago-io/sdk-python";
|
|
changelog = "https://github.com/tago-io/sdk-python/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|