2013-03-25 18:28:09 +04:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pythonPackages, minicom
|
|
|
|
, avrdude, arduino_core, avrgcclibc }:
|
2012-11-28 05:55:24 +04:00
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
name = "ino-0.3.4";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pypi.python.org/packages/source/i/ino/ino-0.3.4.tar.gz";
|
|
|
|
sha256 = "1v7z3da31cv212k28aci269qkg92p377fm7i76rymjjpjra7payv";
|
|
|
|
};
|
|
|
|
|
2012-12-01 06:00:45 +04:00
|
|
|
# TODO: add avrgcclibc, it must be rebuild with C++ support
|
2013-03-25 18:28:09 +04:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ arduino_core avrdude minicom pythonPackages.configobj
|
|
|
|
pythonPackages.jinja2 pythonPackages.pyserial ];
|
2012-11-28 05:55:24 +04:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
echo "Patching Arduino distribution path"
|
2013-03-25 18:28:09 +04:00
|
|
|
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
|
2012-11-28 05:55:24 +04:00
|
|
|
'';
|
2012-12-23 20:21:51 +04:00
|
|
|
|
2012-11-28 05:55:24 +04:00
|
|
|
meta = {
|
|
|
|
description = "Command line toolkit for working with Arduino hardware";
|
|
|
|
homepage = http://inotool.org/;
|
|
|
|
license = "MIT";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.antono ];
|
|
|
|
};
|
|
|
|
}
|