python.platformio: 2.10.3 -> 3.4.1
add patch for fixing the broken search function for PYTHONPATH
This commit is contained in:
32
pkgs/development/python-modules/platformio/default.nix
Normal file
32
pkgs/development/python-modules/platformio/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, arrow, bottle, click_5, colorama
|
||||
, lockfile, pyserial, requests
|
||||
, semantic-version
|
||||
, isPy3k, isPyPy
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
pname = "platformio";
|
||||
version="3.4.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1b4lba672l851sv1xwc320xbh46x7hx4ms6whc0k37hxkxj0nwm2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
arrow bottle click_5 colorama
|
||||
lockfile pyserial requests semantic-version
|
||||
];
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
--- ./platformio/util.py-old 2017-09-29 01:20:08.174548250 +0200
|
||||
+++ ./platformio/util.py 2017-09-29 01:19:48.410485308 +0200
|
||||
@@ -395,7 +395,7 @@
|
||||
isdir(join(p, "click")) or isdir(join(p, "platformio")))
|
||||
if all(conditions):
|
||||
_PYTHONPATH.append(p)
|
||||
- os.environ['PYTHONPATH'] = os.pathsep.join(_PYTHONPATH)
|
||||
+ os.environ['PYTHONPATH'] = os.pathsep.join(sys.path)
|
||||
|
||||
|
||||
def get_serialports(filter_hwid=False):
|
||||
Reference in New Issue
Block a user