python312Packages.life360: refactor

This commit is contained in:
Fabian Affolter 2024-05-23 00:29:35 +02:00
parent 5a8e22e8b3
commit 2f45cbe1c2

View File

@ -5,31 +5,34 @@
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "life360";
version = "7.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pnbruckner";
repo = pname;
repo = "life360";
rev = "refs/tags/v${version}";
hash = "sha256-+fvzZ1IsPsXLTcfR7vrE4n1nF7CdvoL4BzDJMsDBZVY=";
};
propagatedBuildInputs = [ aiohttp ];
build-system = [ setuptools ];
# Project has no tests
dependencies = [ aiohttp ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "life360" ];
meta = with lib; {
description = "Python module to interact with Life360";
description = "Module to interact with Life360";
homepage = "https://github.com/pnbruckner/life360";
changelog = "https://github.com/pnbruckner/life360/releases/tag/v${version}";
license = licenses.mit;