1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "haversine";
10 version = "2.5.1";
11
12 src = fetchFromGitHub {
13 owner = "mapado";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-tHA1Ff/J1mfSnER2X/8e0QyQkuRz1mn8MeGlThVQaSg=";
17 };
18
19 checkInputs = [
20 numpy
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [ "haversine" ];
25
26 meta = with lib; {
27 description = "Python module the distance between 2 points on earth";
28 homepage = "https://github.com/mapado/haversine";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ fab ];
31 };
32}