Skip to content

Instantly share code, notes, and snippets.

@nkpart
Created October 30, 2017 06:29
Show Gist options
  • Save nkpart/aca2468ae8552c7f075cf04287d23b92 to your computer and use it in GitHub Desktop.
Save nkpart/aca2468ae8552c7f075cf04287d23b92 to your computer and use it in GitHub Desktop.
{ nixpkgs ? import <nixpkgs> {}
}:
let
inherit (nixpkgs) pkgs;
python = let
packageOverrides = self: super: {
# sklearn tests fail on darwin
scikitlearn = super.scikitlearn.overridePythonAttrs(old: rec {
doCheck = false;
});
};
in pkgs.python3.override {inherit packageOverrides;};
pythonPackages = with python.pkgs; [
tensorflow
matplotlib
python
scikitlearn
Keras
];
in
pkgs.stdenv.mkDerivation {
name = "py-ml";
buildInputs = pythonPackages;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment