platformio: move out of pythonPackages

This commit is contained in:
Robert Schütz
2018-04-07 23:00:21 +02:00
committed by Frederik Rietdijk
parent a7bcc079fa
commit c664dc8d19
4 changed files with 32 additions and 19 deletions

View File

@@ -1,33 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi
, bottle, click_5, colorama
, lockfile, pyserial, requests
, semantic-version
, isPy3k, isPyPy
, git
}:
buildPythonPackage rec {
disabled = isPy3k || isPyPy;
pname = "platformio";
version="3.5.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0cc15mzh7p1iykip0jpxldz81yz946vrgvhwmfl8w3z5kgjjgx3n";
};
propagatedBuildInputs = [
bottle click_5 colorama git 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;
};
}

View File

@@ -1,11 +0,0 @@
--- ./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):