2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachetools,
|
|
|
|
coloredlogs,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
requests,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "locationsharinglib";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "5.0.3";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-ar5/gyDnby0aceqqHe8lTQaHafOub+IPKglmct4xEGM=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Tests requirements want to pull in multiple modules which we don't need
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace-fail "tests_require=test_requirements" "tests_require=[]"
|
|
|
|
cp .VERSION locationsharinglib/.VERSION
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-05-20 23:08:51 +00:00
|
|
|
coloredlogs
|
|
|
|
requests
|
|
|
|
cachetools
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# There are no tests
|
|
|
|
doCheck = false;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "locationsharinglib" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Python package to retrieve coordinates from a Google account";
|
|
|
|
homepage = "https://locationsharinglib.readthedocs.io/";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/costastf/locationsharinglib/blob/${version}/HISTORY.rst";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fab ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|