diff --git a/pkgs/development/python-modules/cntk/default.nix b/pkgs/development/python-modules/cntk/default.nix index 2bcb7165ca1c..cfc16063cf73 100644 --- a/pkgs/development/python-modules/cntk/default.nix +++ b/pkgs/development/python-modules/cntk/default.nix @@ -10,9 +10,10 @@ }: buildPythonPackage rec { - inherit (pkgs.cntk) name version src meta; + inherit (pkgs.cntk) name version src; - buildInputs = [ pkgs.cntk pkgs.swig pkgs.openmpi ]; + nativeBuildInputs = [ pkgs.swig pkgs.openmpi ]; + buildInputs = [ pkgs.cntk pkgs.openmpi ]; propagatedBuildInputs = [ numpy scipy enum34 protobuf pip ]; CNTK_LIB_PATH = "${pkgs.cntk}/lib"; @@ -35,4 +36,12 @@ buildPythonPackage rec { cd $NIX_BUILD_TOP ${python.interpreter} -c "import cntk" ''; + + meta = { + inherit (pkgs.cntk.meta) homepage description license maintainers; + # broken in CNTK 2.4 starting with python-3.7 + # ("ImportError: cannot import name 'GenericMeta' from 'typing'") + broken = stdenv.lib.versionAtLeast python.version "3.7"; + + }; }