1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "life360";
11 version = "6.0.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "pnbruckner";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-GRQPH7fp8YkkCEpXtvgFxJO6VLFQK/PBaRe0Tfg3KdU=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 ];
26
27 # Project has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "life360"
32 ];
33
34 meta = with lib; {
35 description = "Python module to interact with Life360";
36 homepage = "https://github.com/pnbruckner/life360";
37 changelog = "https://github.com/pnbruckner/life360/releases/tag/v${version}";
38 license = licenses.mit;
39 maintainers = with maintainers; [ fab ];
40 };
41}