pythonPackages.kicad: bindings to kicad

Add the Python bindings for kicad.

Following now functions

    $ nix run "(import ./. {}).python3.withPackages(ps: with ps; [ kicad  ])" -c python3 -c "import pcbnew"

Have not tested this any further.
This commit is contained in:
Frederik Rietdijk 2020-05-23 13:17:18 +02:00
parent 30583847f1
commit bc3c3b4a59
3 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,7 @@
, oceSupport ? false, opencascade
, withOCCT ? true, opencascade-occt
, ngspiceSupport ? true, libngspice
, scriptingSupport ? true, swig, python, pythonPackages, wxPython
, scriptingSupport ? true, swig, python, wxPython
, debug ? false, valgrind
, withI18n ? true
}:

View File

@ -8,7 +8,7 @@
, oceSupport ? false, opencascade
, withOCCT ? true, opencascade-occt
, ngspiceSupport ? true, libngspice
, scriptingSupport ? true, swig, python3, python3Packages
, scriptingSupport ? true, swig, python3
, debug ? false, valgrind
, with3d ? true
, withI18n ? true
@ -31,9 +31,9 @@ let
# but brings high DPI support?
else wxGTK31.override { withGtk2 = false; };
pythonPackages = python3Packages;
pythonPackages = python.pkgs;
python = python3;
wxPython = python3Packages.wxPython_4_0;
wxPython = pythonPackages.wxPython_4_0;
in
stdenv.mkDerivation rec {

View File

@ -3036,6 +3036,10 @@ in {
jsonwatch = callPackage ../development/python-modules/jsonwatch { };
kicad = disabledIf isPy27 (toPythonModule (pkgs.kicad.override {
python3 = python;
}).src);
latexcodec = callPackage ../development/python-modules/latexcodec {};
libmodulemd = pipe pkgs.libmodulemd [