python313Packages.timezonefinder: 6.5.9 -> 6.6.2
Changelog: https://github.com/jannikmi/timezonefinder/blob/6.6.2/CHANGELOG.rst
This commit is contained in:
@@ -3,27 +3,25 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
cffi,
|
||||
flatbuffers,
|
||||
h3,
|
||||
numba,
|
||||
numpy,
|
||||
poetry-core,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "timezonefinder";
|
||||
version = "6.5.9";
|
||||
version = "6.6.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jannikmi";
|
||||
repo = "timezonefinder";
|
||||
tag = version;
|
||||
hash = "sha256-LkGDR8nSGfRiBxSXugauGhe3+8RsLRPWU3oE+1c5iCk=";
|
||||
hash = "sha256-5BScSnMYKPwVn4lO4qFeqPik1TAFu9AhOnmUADBW+3U=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -35,6 +33,7 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies = [
|
||||
cffi
|
||||
flatbuffers
|
||||
h3
|
||||
numpy
|
||||
];
|
||||
@@ -46,20 +45,25 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "timezonefinder" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-warn '"poetry-core>=1.0.0,<2.0.0"' '"poetry-core>=1.0.0"'
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
# Some tests need the CLI on the PATH
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Don't test the archive content
|
||||
"tests/test_package_contents.py"
|
||||
"tests/test_integration.py"
|
||||
# Don't test the example
|
||||
"tests/test_example_scripts.py"
|
||||
# Tests require clang extension
|
||||
"tests/utils_test.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/jannikmi/timezonefinder/blob/${src.tag}/CHANGELOG.rst";
|
||||
description = "Module for finding the timezone of any point on earth (coordinates) offline";
|
||||
homepage = "https://github.com/MrMinimal64/timezonefinder";
|
||||
changelog = "https://github.com/jannikmi/timezonefinder/blob/${src.tag}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "timezonefinder";
|
||||
|
||||
Reference in New Issue
Block a user