3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/haversine/default.nix
2021-01-24 21:54:49 +01:00

33 lines
645 B
Nix

{ 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 ];
};
}