1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "life360";
11 version = "4.1.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "pnbruckner";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "v+j0DBWQb1JdOu+uxJAdWhzef5zB62z+NSQ+WxpsinA=";
21 };
22
23 propagatedBuildInputs = [
24 requests
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 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}