about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2023-04-23 22:37:52 +0200
committerGitHub <noreply@github.com>2023-04-23 22:37:52 +0200
commit98df5a755945b4b69d759cfde2411827621985e3 (patch)
treecdb9e7be741b72529ba6a67bf5d2979bd8001f41
parent38ad81591a50f55ff37c11844d815b71b604d87f (diff)
parentba5d35ba668ce07823c4d0ed4c48b3940787233f (diff)
Merge pull request #227770 from fabaff/pydsdl-bump
python310Packages.pydsdl: 1.12.1 -> 1.18.0
-rw-r--r--pkgs/development/python-modules/pydsdl/default.nix33
1 files changed, 22 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/pydsdl/default.nix b/pkgs/development/python-modules/pydsdl/default.nix
index 00b74059c63d2..b3dfed8c6cac1 100644
--- a/pkgs/development/python-modules/pydsdl/default.nix
+++ b/pkgs/development/python-modules/pydsdl/default.nix
@@ -1,15 +1,21 @@
-{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+}:
 
  buildPythonPackage rec {
   pname = "pydsdl";
-  version = "1.12.1";
-  disabled = pythonOlder "3.5"; # only python>=3.5 is supported
+  version = "1.18.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
-    owner = "UAVCAN";
+    owner = "OpenCyphal";
     repo = pname;
-    rev = version;
-    hash = "sha256-5AwwqduIvLSZk6WcI59frwRKwjniQXfNWWVsy6V6I1E=";
+    rev = "refs/tags/${version}";
+    hash = "sha256-sn7KoJmJbr7Y+N9PAXyhJnts/hW+Gi06nrHj5VIDZMU=";
   };
 
   # allow for writable directory for darwin
@@ -17,7 +23,7 @@
     export HOME=$TMPDIR
   '';
 
-  # repo doesn't contain tests
+  # Module doesn't contain tests
   doCheck = false;
 
   pythonImportsCheck = [
@@ -25,12 +31,17 @@
   ];
 
   meta = with lib; {
-    description = "A UAVCAN DSDL compiler frontend implemented in Python";
+    description = "Library to process Cyphal DSDL";
     longDescription = ''
-      It supports all DSDL features defined in the UAVCAN specification.
+      PyDSDL is a Cyphal DSDL compiler front-end implemented in Python. It accepts
+      a DSDL namespace at the input and produces a well-annotated abstract syntax
+      tree (AST) at the output, evaluating all constant expressions in the process.
+      All DSDL features defined in the Cyphal Specification are supported. The
+      library should, in theory, work on any platform and with any Python
+      implementation.
     '';
-    homepage = "https://uavcan.org";
-    maintainers = with maintainers; [ wucke13 ];
+    homepage = "https://pydsdl.readthedocs.io/";
     license = licenses.mit;
+    maintainers = with maintainers; [ wucke13 ];
   };
 }