2017-09-29 14:05:31 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-01-18 15:02:44 +00:00
|
|
|
, bottle, click_5, colorama
|
2017-09-29 14:05:31 +01:00
|
|
|
, lockfile, pyserial, requests
|
|
|
|
, semantic-version
|
|
|
|
, isPy3k, isPyPy
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
disabled = isPy3k || isPyPy;
|
|
|
|
|
|
|
|
pname = "platformio";
|
2018-01-18 15:02:44 +00:00
|
|
|
version="3.5.1";
|
2017-09-29 14:05:31 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-18 15:02:44 +00:00
|
|
|
sha256 = "0cc15mzh7p1iykip0jpxldz81yz946vrgvhwmfl8w3z5kgjjgx3n";
|
2017-09-29 14:05:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-01-18 15:02:44 +00:00
|
|
|
bottle click_5 colorama lockfile
|
|
|
|
pyserial requests semantic-version
|
2017-09-29 14:05:31 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./fix-searchpath.patch ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open source ecosystem for IoT development";
|
|
|
|
homepage = http://platformio.org;
|
|
|
|
maintainers = with maintainers; [ mog makefu ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|