nixos-option: rewrite as a nix script, 2nd try (#369151)
[NixPkgs.git] / pkgs / development / python-modules / geographiclib / default.nix
blob4d91f5fb8a2e9ee579637ee5954f8a617bc2ab66
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "geographiclib";
11   version = "2.0";
12   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-9/Qchdw+HC09k17IZmDcOyyEjIPhf5qeUbqdUUahWFk=";
18   };
20   nativeCheckInputs = [ pytestCheckHook ];
22   pythonImportsCheck = [ "geographiclib" ];
24   meta = with lib; {
25     homepage = "https://geographiclib.sourceforge.io";
26     description = "Algorithms for geodesics (Karney, 2013) for solving the direct and inverse problems for an ellipsoid of revolution";
27     license = licenses.mit;
28     maintainers = [ ];
29   };