depot/third_party/nixpkgs/pkgs/development/python-modules/losant-rest/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

45 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "losant-rest";
version = "1.19.10";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Losant";
repo = "losant-rest-python";
rev = "refs/tags/v${version}";
hash = "sha256-3DDL3r7pApDyBQd/eUEbR0KG3cpVOmozNcCsKyGx67Y=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pytestFlagsArray = [ "tests/platformrest_tests.py" ];
pythonImportsCheck = [ "platformrest" ];
meta = with lib; {
description = "Python module for consuming the Losant IoT Platform API";
homepage = "https://github.com/Losant/losant-rest-python";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}