From 1fe9251c27fd1287486c4a41c7c9ec090ea553b1 Mon Sep 17 00:00:00 2001 From: Leandro Reina Date: Fri, 9 Feb 2024 18:44:50 +0100 Subject: [PATCH] python312Packages.pyuavcan: remove deprecated package It's been replaced by pycyphal --- .../python-modules/pyuavcan/default.nix | 51 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 11 ---- 3 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 pkgs/development/python-modules/pyuavcan/default.nix diff --git a/pkgs/development/python-modules/pyuavcan/default.nix b/pkgs/development/python-modules/pyuavcan/default.nix deleted file mode 100644 index 33efaf5f790a1..0000000000000 --- a/pkgs/development/python-modules/pyuavcan/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, nunavut -, pyserial , pytest, ruamel-yaml}: - - buildPythonPackage rec { - pname = "pyuavcan"; - version = "1.1.0.dev1"; - format = "setuptools"; - disabled = pythonOlder "3.7"; # only python>=3.7 is supported - - src = fetchFromGitHub { - owner = "UAVCAN"; - repo = pname; - rev = version; - hash = "sha256-ChNoYHuZulPLrxYvxeVO9Tyt8rymlk3p/OkYaG2rqzo="; - }; - - propagatedBuildInputs = [ - numpy - nunavut - pyserial - pytest - ruamel-yaml - ]; - - # allow for writable directory for darwin - preBuild = '' - export HOME=$TMPDIR - export PYTHONASYNCIODEBUG=1 - ''; - - # tests fail ATM. - doCheck = false; - - # check at least that import works, as tests fail - pythonImportsCheck = [ - "pyuavcan" - ]; - - meta = with lib; { - description = "A full-featured implementation of the UAVCAN protocol stack"; - longDescription = '' - It is intended for non-embedded, user-facing applications such as GUI - software, diagnostic tools, automation scripts, prototypes, and various - R&D cases. PyUAVCAN consists of a Python library (package) and a simple - CLI tool for basic diagnostics and shell script automation. - ''; - homepage = "https://pyuavcan.readthedocs.io"; - maintainers = with maintainers; [ wucke13 ]; - license = licenses.mit; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 20e30e9a03c91..1c454947c329e 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -410,6 +410,7 @@ mapAliases ({ pytorchWithCuda = torchWithCuda; # added 2022-09-30 pytorchWithoutCuda = torchWithoutCuda; # added 2022-09-30 pytwitchapi = twitchapi; # added 2022-03-07 + pyuavcan = throw "pyuavcan has been renamed to pycyphal and the old package deprecated, use pycyphal instead"; # added 2024-02-09 pyvcf = throw "pyvcf has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2023-05-19 PyVirtualDisplay = pyvirtualdisplay; # added 2023-02-19 pywick = throw "pywick has been removed, since it is no longer maintained"; # added 2023-07-01 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1e7ab55350b09..031ef2c7fd113 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12128,17 +12128,6 @@ self: super: with self; { pyu2f = callPackage ../development/python-modules/pyu2f { }; - pyuavcan = callPackage - ../development/python-modules/pyuavcan { # this version pinpoint to anold version is necessary due to a regression - nunavut = self.nunavut.overridePythonAttrs (old: rec { - version = "0.2.3"; - src = old.src.override { - inherit version; - hash = "sha256-pZtRUvQMpqrnW5+8umsRcNhF9NJZJZ3I9yILVglMCnU="; - }; - }); - }; - pyudev = callPackage ../development/python-modules/pyudev { inherit (pkgs) udev; };