Something went wrong. Try again.
lol
Something went wrong. Try again.
977 B · 43 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, requests, requests-mock, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "losant-rest"; version = "2.1.4"; pyproject = true;
src = fetchFromGitHub { owner = "Losant"; repo = "losant-rest-python"; tag = "v${finalAttrs.version}"; hash = "sha256-51HzUrKBUwgXDSCV+iAtEBLLMl0yV5KVHYHTy+u5TAI="; };
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 ]; };})