lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python.platformio: 2.10.3 -> 3.4.1

add patch for fixing the broken search function for PYTHONPATH

authored by

makefu and committed by
Orivej Desh
ec03001e bc45bc3d

+44 -21
+32
pkgs/development/python-modules/platformio/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi 2 + , arrow, bottle, click_5, colorama 3 + , lockfile, pyserial, requests 4 + , semantic-version 5 + , isPy3k, isPyPy 6 + }: 7 + buildPythonPackage rec { 8 + disabled = isPy3k || isPyPy; 9 + 10 + pname = "platformio"; 11 + version="3.4.1"; 12 + name = "${pname}-${version}"; 13 + 14 + src = fetchPypi { 15 + inherit pname version; 16 + sha256 = "1b4lba672l851sv1xwc320xbh46x7hx4ms6whc0k37hxkxj0nwm2"; 17 + }; 18 + 19 + propagatedBuildInputs = [ 20 + arrow bottle click_5 colorama 21 + lockfile pyserial requests semantic-version 22 + ]; 23 + 24 + patches = [ ./fix-searchpath.patch ]; 25 + 26 + meta = with stdenv.lib; { 27 + description = "An open source ecosystem for IoT development"; 28 + homepage = http://platformio.org; 29 + maintainers = with maintainers; [ mog makefu ]; 30 + license = licenses.asl20; 31 + }; 32 + }
+11
pkgs/development/python-modules/platformio/fix-searchpath.patch
··· 1 + --- ./platformio/util.py-old 2017-09-29 01:20:08.174548250 +0200 2 + +++ ./platformio/util.py 2017-09-29 01:19:48.410485308 +0200 3 + @@ -395,7 +395,7 @@ 4 + isdir(join(p, "click")) or isdir(join(p, "platformio"))) 5 + if all(conditions): 6 + _PYTHONPATH.append(p) 7 + - os.environ['PYTHONPATH'] = os.pathsep.join(_PYTHONPATH) 8 + + os.environ['PYTHONPATH'] = os.pathsep.join(sys.path) 9 + 10 + 11 + def get_serialports(filter_hwid=False):
+1 -21
pkgs/top-level/python-packages.nix
··· 15611 15611 }; 15612 15612 15613 15613 pika-pool = callPackage ../development/python-modules/pika-pool { }; 15614 - 15615 - platformio = buildPythonPackage rec { 15616 - name = "platformio-${version}"; 15617 - version="2.10.3"; 15618 - 15619 - disabled = isPy3k || isPyPy; 15620 - 15621 - src = pkgs.fetchurl { 15622 - url = "https://pypi.python.org/packages/b7/a3/1d3a9d7bae91df1b607e0f31549ec3e0006f29484cc6a1431b3fe3c5b02e/platformio-2.10.3.tar.gz"; 15623 - sha256 = "f3a646871f9baed05f336a32576edaab90abf0737d8adb54f2acb7bcad42a65f"; 15624 - }; 15625 - 15626 - propagatedBuildInputs = with self; [ click_5 requests bottle pyserial lockfile colorama]; 15627 - 15628 - meta = with stdenv.lib; { 15629 - description = "An open source ecosystem for IoT development"; 15630 - homepage = http://platformio.org; 15631 - maintainers = with maintainers; [ mog ]; 15632 - license = licenses.asl20; 15633 - }; 15634 - }; 15614 + platformio = callPackage ../development/python-modules/platformio { }; 15635 15615 15636 15616 pylibconfig2 = buildPythonPackage rec { 15637 15617 name = "pylibconfig2-${version}";