summary refs log tree commit diff
path: root/pkgs/development/python-modules/geographiclib
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-07-09 22:11:48 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-07-09 14:37:40 -0700
commita0005de253a11840fa7eeb76493535053bb49024 (patch)
treeee502261f2962b2a908b9034aff33487d7be98f7 /pkgs/development/python-modules/geographiclib
parented97a5f158ee3c8d48604a32713c3d905c67bdd3 (diff)
downloadnixpkgs-a0005de253a11840fa7eeb76493535053bb49024.tar
nixpkgs-a0005de253a11840fa7eeb76493535053bb49024.tar.gz
nixpkgs-a0005de253a11840fa7eeb76493535053bb49024.tar.bz2
nixpkgs-a0005de253a11840fa7eeb76493535053bb49024.tar.lz
nixpkgs-a0005de253a11840fa7eeb76493535053bb49024.tar.xz
nixpkgs-a0005de253a11840fa7eeb76493535053bb49024.tar.zst
nixpkgs-a0005de253a11840fa7eeb76493535053bb49024.zip
python3Packages.geographiclib: enable tests
Diffstat (limited to 'pkgs/development/python-modules/geographiclib')
-rw-r--r--pkgs/development/python-modules/geographiclib/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/geographiclib/default.nix b/pkgs/development/python-modules/geographiclib/default.nix
index cb13d89a76d..5ebaac9cea5 100644
--- a/pkgs/development/python-modules/geographiclib/default.nix
+++ b/pkgs/development/python-modules/geographiclib/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
@@ -12,6 +13,12 @@ buildPythonPackage rec {
     sha256 = "sha256-rEANZyuJVLAwa8qJCwiLuLoqdX3IEzzKC4ePNLM7J0A=";
   };
 
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "geographiclib" ];
+
   meta = with lib; {
     homepage = "https://geographiclib.sourceforge.io";
     description = "Algorithms for geodesics (Karney, 2013) for solving the direct and inverse problems for an ellipsoid of revolution";