platformio: move out of pythonPackages
This commit is contained in:
parent
a7bcc079fa
commit
c664dc8d19
@ -1,23 +1,40 @@
|
|||||||
{ stdenv, lib, buildFHSUserEnv
|
{ lib, buildFHSUserEnv }:
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
pio-pkgs = pkgs: (with pkgs;
|
pio-pkgs = pkgs:
|
||||||
[
|
let
|
||||||
python27Packages.python
|
python = pkgs.python.override {
|
||||||
python27Packages.setuptools
|
packageOverrides = self: super: {
|
||||||
python27Packages.pip
|
|
||||||
python27Packages.bottle
|
# https://github.com/platformio/platformio-core/issues/349
|
||||||
python27Packages.platformio
|
click = super.click.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "5.1";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
|
inherit version;
|
||||||
|
sha256 = "678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
platformio = self.callPackage ./core.nix { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in (with pkgs; [
|
||||||
zlib
|
zlib
|
||||||
|
]) ++ (with python.pkgs; [
|
||||||
|
python
|
||||||
|
setuptools
|
||||||
|
pip
|
||||||
|
bottle
|
||||||
|
platformio
|
||||||
]);
|
]);
|
||||||
in
|
|
||||||
buildFHSUserEnv {
|
in buildFHSUserEnv {
|
||||||
name = "platformio";
|
name = "platformio";
|
||||||
|
|
||||||
targetPkgs = pio-pkgs;
|
targetPkgs = pio-pkgs;
|
||||||
multiPkgs = pio-pkgs;
|
multiPkgs = pio-pkgs;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "An open source ecosystem for IoT development";
|
description = "An open source ecosystem for IoT development";
|
||||||
homepage = http://platformio.org;
|
homepage = http://platformio.org;
|
||||||
maintainers = with maintainers; [ mog ];
|
maintainers = with maintainers; [ mog ];
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, bottle, click_5, colorama
|
, bottle, click, colorama
|
||||||
, lockfile, pyserial, requests
|
, lockfile, pyserial, requests
|
||||||
, semantic-version
|
, semantic-version
|
||||||
, isPy3k, isPyPy
|
|
||||||
, git
|
, git
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
|
||||||
disabled = isPy3k || isPyPy;
|
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
pname = "platformio";
|
pname = "platformio";
|
||||||
version="3.5.1";
|
version="3.5.1";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -18,7 +15,7 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
bottle click_5 colorama git lockfile
|
bottle click colorama git lockfile
|
||||||
pyserial requests semantic-version
|
pyserial requests semantic-version
|
||||||
];
|
];
|
||||||
|
|
@ -10084,7 +10084,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
pika-pool = callPackage ../development/python-modules/pika-pool { };
|
pika-pool = callPackage ../development/python-modules/pika-pool { };
|
||||||
platformio = callPackage ../development/python-modules/platformio { };
|
|
||||||
|
|
||||||
kmsxx = callPackage ../development/libraries/kmsxx { };
|
kmsxx = callPackage ../development/libraries/kmsxx { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user