Files
nixpkgs/pkgs/development/python-modules/losant-rest/default.nix
T
Martin Weinelt 27ec7289df python3Packages.losant-rest: 1.22.1 -> 2.1.1
This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:29 +01:00

43 lines
860 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "losant-rest";
version = "2.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Losant";
repo = "losant-rest-python";
tag = "v${version}";
hash = "sha256-B4r3ZCXt3jC/8vtBzct1HEBuMq9NpF2qOlmlhZk9a3Q=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
enabledTestPaths = [ "tests/platformrest_tests.py" ];
pythonImportsCheck = [ "platformrest" ];
meta = {
description = "Python module for consuming the Losant IoT Platform API";
homepage = "https://github.com/Losant/losant-rest-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}