tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.haversine: init at 2.3.0
Fabian Affolter
5 years ago
480f0263
1af6e3ae
+34
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
haversine
default.nix
top-level
python-packages.nix
+32
pkgs/development/python-modules/haversine/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, numpy
5
5
+
, pytestCheckHook
6
6
+
}:
7
7
+
8
8
+
buildPythonPackage rec {
9
9
+
pname = "haversine";
10
10
+
version = "2.3.0";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "mapado";
14
14
+
repo = pname;
15
15
+
rev = "v${version}";
16
16
+
sha256 = "1c3yf9162b2b7l1lsw3ffd1linnc542qvljpgwxp6y5arrmljqnv";
17
17
+
};
18
18
+
19
19
+
checkInputs = [
20
20
+
numpy
21
21
+
pytestCheckHook
22
22
+
];
23
23
+
24
24
+
pythonImportsCheck = [ "haversine" ];
25
25
+
26
26
+
meta = with lib; {
27
27
+
description = "Python module the distance between 2 points on earth";
28
28
+
homepage = "https://github.com/mapado/haversine";
29
29
+
license = with licenses; [ mit ];
30
30
+
maintainers = with maintainers; [ fab ];
31
31
+
};
32
32
+
}
+2
pkgs/top-level/python-packages.nix
···
2859
2859
2860
2860
hatasmota = callPackage ../development/python-modules/hatasmota { };
2861
2861
2862
2862
+
haversine = callPackage ../development/python-modules/haversine { };
2863
2863
+
2862
2864
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };
2863
2865
2864
2866
hbmqtt = callPackage ../development/python-modules/hbmqtt { };