about summary refs log tree commit diff
path: root/pkgs/development/libraries/example-robot-data
diff options
context:
space:
mode:
authorGuilhem Saurel <guilhem.saurel@laas.fr>2023-07-18 17:53:22 +0200
committerGuilhem Saurel <guilhem.saurel@laas.fr>2023-07-18 17:59:34 +0200
commit68cf164989bc8579bc750455d5062e2be8d0ce2c (patch)
tree27f6422515dec66285d595f375e65e03028c91e9 /pkgs/development/libraries/example-robot-data
parent3ac870f5104a942049b563794f932f60ee40da82 (diff)
example-robot-data: 4.0.7 -> 4.0.8
while here:
- use finalAttrs instead of rec
- add check & python import check
- add me as maintainer
Diffstat (limited to 'pkgs/development/libraries/example-robot-data')
-rw-r--r--pkgs/development/libraries/example-robot-data/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/development/libraries/example-robot-data/default.nix b/pkgs/development/libraries/example-robot-data/default.nix
index b8ec7227c612e..201275fb02ef2 100644
--- a/pkgs/development/libraries/example-robot-data/default.nix
+++ b/pkgs/development/libraries/example-robot-data/default.nix
@@ -6,16 +6,16 @@
 , python3Packages
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "example-robot-data";
-  version = "4.0.7";
+  version = "4.0.8";
 
   src = fetchFromGitHub {
     owner = "Gepetto";
-    repo = pname;
-    rev = "v${version}";
+    repo = finalAttrs.pname;
+    rev = "v${finalAttrs.version}";
     fetchSubmodules = true;
-    hash = "sha256-dN23ukKPkTohqD1J/0EneLyG6Cg0zriMr1l6WLFemd8=";
+    hash = "sha256-xeNbx1f9QCAOJrXfkk3jo9XH2/4HNtnRA1OSnqA2cLs=";
   };
 
   strictDeps = true;
@@ -32,11 +32,16 @@ stdenv.mkDerivation rec {
     "-DBUILD_PYTHON_INTERFACE=OFF"
   ];
 
+  doCheck = true;
+  pythonImportsCheck = [
+    "example_robot_data"
+  ];
+
   meta = with lib; {
     description = "Set of robot URDFs for benchmarking and developed examples.";
     homepage = "https://github.com/Gepetto/example-robot-data";
     license = licenses.bsd3;
-    maintainers = with maintainers; [ wegank ];
+    maintainers = with maintainers; [ nim65s wegank ];
     platforms = platforms.unix;
   };
-}
+})