{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, requests, requests-mock, setuptools, }: buildPythonPackage (finalAttrs: { pname = "losant-rest"; version = "2.2.1"; pyproject = true; src = fetchFromGitHub { owner = "Losant"; repo = "losant-rest-python"; tag = "v${finalAttrs.version}"; hash = "sha256-KNi3caxuD1jiW3fHT5dcuM/4SfLVgi770MfDfCmkiFk="; }; build-system = [ setuptools ]; dependencies = [ requests ]; nativeCheckInputs = [ pytestCheckHook requests-mock ]; enabledTestPaths = [ "tests/losant_rest_test.py" ]; pythonImportsCheck = [ "losant_rest" ]; meta = { description = "Python module for consuming the Losant IoT Platform API"; homepage = "https://github.com/Losant/losant-rest-python"; changelog = "https://github.com/Losant/losant-rest-python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; })