ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / timezonefinder / default.nix
blobf5dc5f7c346f739d9f18f730f2a29bec2580980c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , h3
5 , numba
6 , numpy
7 , poetry-core
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "timezonefinder";
14   version = "6.0.2";
15   format = "pyproject";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "jannikmi";
21     repo = pname;
22     rev = version;
23     hash = "sha256-jquaA/+alSRUaa2wXQ6YoDR4EY9OlZCAdcxS5TR0CAU=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     h3
32     numpy
33   ];
35   checkInputs = [
36     numba
37     pytestCheckHook
38   ];
40   postPatch = ''
41     substituteInPlace pyproject.toml \
42       --replace 'numpy = "^1.22"' 'numpy = "*"'
43   '';
45   pythonImportsCheck = [
46     "timezonefinder"
47   ];
49   preCheck = ''
50     # Some tests need the CLI on the PATH
51     export PATH=$out/bin:$PATH
52   '';
54   meta = with lib; {
55     description = "Module for finding the timezone of any point on earth (coordinates) offline";
56     homepage = "https://github.com/MrMinimal64/timezonefinder";
57     license = licenses.mit;
58     maintainers = with maintainers; [ fab ];
59   };