python3Packages.haversine: init at 2.3.0

This commit is contained in:
Fabian Affolter 2021-01-24 21:54:49 +01:00
parent 1af6e3aeed
commit 480f0263ca
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "haversine";
version = "2.3.0";
src = fetchFromGitHub {
owner = "mapado";
repo = pname;
rev = "v${version}";
sha256 = "1c3yf9162b2b7l1lsw3ffd1linnc542qvljpgwxp6y5arrmljqnv";
};
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 ];
};
}

View File

@ -2859,6 +2859,8 @@ in {
hatasmota = callPackage ../development/python-modules/hatasmota { }; hatasmota = callPackage ../development/python-modules/hatasmota { };
haversine = callPackage ../development/python-modules/haversine { };
hawkauthlib = callPackage ../development/python-modules/hawkauthlib { }; hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };
hbmqtt = callPackage ../development/python-modules/hbmqtt { }; hbmqtt = callPackage ../development/python-modules/hbmqtt { };