fix ino
This commit is contained in:
parent
870f4cca73
commit
fc9bdabd54
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl, buildPythonPackage, minicom, avrdude, arduino_core, avrgcclibc }:
|
{ stdenv, fetchurl, buildPythonPackage, pythonPackages, minicom
|
||||||
|
, avrdude, arduino_core, avrgcclibc }:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
name = "ino-0.3.4";
|
name = "ino-0.3.4";
|
||||||
@ -10,15 +11,20 @@ buildPythonPackage {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# TODO: add avrgcclibc, it must be rebuild with C++ support
|
# TODO: add avrgcclibc, it must be rebuild with C++ support
|
||||||
propagatedBuildInputs = [ minicom avrdude arduino_core ];
|
propagatedBuildInputs =
|
||||||
|
[ arduino_core avrdude minicom pythonPackages.configobj
|
||||||
|
pythonPackages.jinja2 pythonPackages.pyserial ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
echo "Patching Arduino distribution path"
|
echo "Patching Arduino distribution path"
|
||||||
sed -i 's@/usr/local/share/arduino@${arduino_core}/share/arduino@g' ino/environment.py
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Command line toolkit for working with Arduino hardware";
|
description = "Command line toolkit for working with Arduino hardware";
|
||||||
homepage = http://inotool.org/;
|
homepage = http://inotool.org/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user