1{
2 lib,
3 buildPythonPackage,
4 cachetools,
5 coloredlogs,
6 fetchPypi,
7 pythonOlder,
8 pytz,
9 requests,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "locationsharinglib";
15 version = "5.0.3";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-ar5/gyDnby0aceqqHe8lTQaHafOub+IPKglmct4xEGM=";
23 };
24
25 postPatch = ''
26 # Tests requirements want to pull in multiple modules which we don't need
27 substituteInPlace setup.py \
28 --replace-fail "tests_require=test_requirements" "tests_require=[]"
29 cp .VERSION locationsharinglib/.VERSION
30 '';
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 coloredlogs
36 requests
37 cachetools
38 pytz
39 ];
40
41 # There are no tests
42 doCheck = false;
43
44 pythonImportsCheck = [ "locationsharinglib" ];
45
46 meta = {
47 description = "Python package to retrieve coordinates from a Google account";
48 homepage = "https://locationsharinglib.readthedocs.io/";
49 changelog = "https://github.com/costastf/locationsharinglib/blob/${version}/HISTORY.rst";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ fab ];
52 };
53}