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