From 308e8396b73947dca793085a0377c32d1b477dfe Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 12 Jan 2022 04:49:35 +0100 Subject: ino: drop The package is stuck on python2 while the upstream has archived its repository and the last commit is from 2014. ``` File "/build/ino-0.3.6/ino/runner.py", line 78 print colorize(str(exc), 'red') ^ SyntaxError: invalid syntax ``` --- pkgs/development/embedded/arduino/ino/default.nix | 46 ----------------------- 1 file changed, 46 deletions(-) delete mode 100644 pkgs/development/embedded/arduino/ino/default.nix (limited to 'pkgs/development/embedded') diff --git a/pkgs/development/embedded/arduino/ino/default.nix b/pkgs/development/embedded/arduino/ino/default.nix deleted file mode 100644 index e25a7b83e9c77..0000000000000 --- a/pkgs/development/embedded/arduino/ino/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ lib, fetchurl, python2Packages, picocom -, avrdude, arduino-core }: - -python2Packages.buildPythonApplication rec { - pname = "ino"; - version = "0.3.6"; - - src = fetchurl { - url = "mirror://pypi/i/ino/ino-${version}.tar.gz"; - sha256 = "0k6lzfcn55favbj0w4afrvnmwyskf7bgzg9javv2ycvskp35srwv"; - }; - - # TODO: add avrgcclibc, it must be rebuild with C++ support - propagatedBuildInputs = with python2Packages; [ - arduino-core - avrdude - picocom - configobj - jinja2 - pyserial - six - ]; - - patchPhase = '' - echo "Patching Arduino distribution path" - sed -i 's@/usr/local/share/arduino@${arduino-core}/share/arduino@g' \ - ino/environment.py - sed -i -e 's@argparse@@' -e 's@ordereddict@@' \ - requirements.txt - sed -i -e 's@from ordereddict@from collections@' \ - ino/environment.py ino/utils.py - - # Patch the upload command so it uses the correct avrdude - substituteInPlace ino/commands/upload.py \ - --replace "self.e['avrdude']" "'${avrdude}/bin/avrdude'" \ - --replace "'-C', self.e['avrdude.conf']," "" - ''; - - meta = with lib; { - description = "Command line toolkit for working with Arduino hardware"; - homepage = "http://inotool.org/"; - license = licenses.mit; - maintainers = with maintainers; [ antono ]; - platforms = platforms.linux; - }; -} -- cgit 1.4.1