Merge pull request #181167 from fabaff/timezonefinder-bump
python310Packages.timezonefinder: 5.2.0 -> 6.0.2
This commit is contained in:
commit
47db889df9
1 changed files with 39 additions and 12 deletions
|
@ -1,33 +1,60 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
, lib
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, isPy27
|
, h3
|
||||||
, numba
|
, numba
|
||||||
, numpy
|
, numpy
|
||||||
|
, poetry-core
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-cov
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "timezonefinder";
|
pname = "timezonefinder";
|
||||||
version = "5.2.0";
|
version = "6.0.2";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "jannikmi";
|
||||||
sha256 = "a374570295a8dbd923630ce85f754e52578e288cb0a9cf575834415e84758352";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-jquaA/+alSRUaa2wXQ6YoDR4EY9OlZCAdcxS5TR0CAU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
h3
|
||||||
numpy
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ numba pytestCheckHook pytest-cov ];
|
checkInputs = [
|
||||||
|
numba
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'numpy = "^1.22"' 'numpy = "*"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"timezonefinder"
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# Some tests need the CLI on the PATH
|
||||||
|
export PATH=$out/bin:$PATH
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "fast python package for finding the timezone of any point on earth (coordinates) offline";
|
description = "Module for finding the timezone of any point on earth (coordinates) offline";
|
||||||
homepage = "https://github.com/MrMinimal64/timezonefinder";
|
homepage = "https://github.com/MrMinimal64/timezonefinder";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue