Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Forked from anonymous/gist:2d4d5c57b6c852d5fc13a4e65441d119
Last active May 19, 2017 22:40
Show Gist options
  • Save cleverca22/84b1b094b090e9291cfe5c751b504e54 to your computer and use it in GitHub Desktop.
Save cleverca22/84b1b094b090e9291cfe5c751b504e54 to your computer and use it in GitHub Desktop.
default.nix trying to turn doCheck off, either globally or just for jedi
with import <nixpkgs> { config = import ./config.nix ; } ;
let
doCheck = false;
myPython = pkgs.python;
myPythonPackages = pkgs.python27Packages.override { python = myPython; };
#defines inotify
inotify = myPythonPackages.buildPythonPackage rec {
name = "inotify";
version = "0.6-test";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/55/f3/7f35bf5ea24ecb0cd9c5ec92b6105473f3322eb20c856f816b99e2eb42a1/python-inotify-0.6-test.tar.gz";
sha256 = "0h6xmf39kag6wzk6fcwf1pc2mzmpv4hmrbh3y7fh1k5ad1gjh8bm";
};
meta = with pkgs.stdenv.lib; {
homepage = "";
license = "LGPL 2";
description = "Interface to Linux inotify subsystem";
};
# No tests distributed
doCheck = false;
};
# Defines our node.js package
dparser = myPythonPackages.buildPythonPackage {
name = "dparser";
builder=./dparserb.sh;
# Where to download sources from
src = pkgs.fetchgit {
url = https://github.com/jplevyak/dparser.git;
rev = "246a343b01da98b2062c6c56f258ececf798d7f7";
sha256 = "93e87d89680112c1e2996e27542d6316d79cbb74215c6c946f1dc639d6df04c7";
};
buildInputs = with pkgs ; [ which swig ] ;
};
myCython = stdenv.lib.overrideDerivation pkgs.pythonPackages.cython (attrs: {
patches = [ ./cython-memoryview.patch ];
doCheck = false;
});
in
myPythonPackages.buildPythonPackage {
name = "myproject";
propogatedBuildInputs = [which dparser ];
buildInputs = with pkgs.python27Packages.override { python=myPython ; } ;
[ Keras tensorflow jedi.overrideAttrs( oldAttrs: rec { doCheck = false; }) theano inotify pathpy pyyaml fasteners jupyter emacs25 which myCython gdb numpy time celery cherrypy redis openpyxl requests dateutil pyinotify scipy tables pandas argparse dparser sh pathpy ];
#src = ./.;
#shellHook = ''
# . env.sh;
# cd ../dserver/src
#'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment