nixpkgs/pkgs/development/python-modules/haversine/default.nix
2021-08-24 16:04:50 +02:00

33 lines
644 B
Nix

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