Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / haversine / default.nix
blob7f5e462d1b3cbe8eede45aef2c1d5df95d114d43
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , numpy
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "haversine";
10   version = "2.3.0";
12   src = fetchFromGitHub {
13     owner = "mapado";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "1c3yf9162b2b7l1lsw3ffd1linnc542qvljpgwxp6y5arrmljqnv";
17   };
19   checkInputs = [
20     numpy
21     pytestCheckHook
22   ];
24   pythonImportsCheck = [ "haversine" ];
26   meta = with lib; {
27     description = "Python module the distance between 2 points on earth";
28     homepage = "https://github.com/mapado/haversine";
29     license = with licenses; [ mit ];
30     maintainers = with maintainers; [ fab ];
31   };