lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.locationsharinglib: modernize

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