From 6afc1907c85fe3a244bd8a52d76f45297f06419e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Mon, 23 Feb 2015 19:43:02 +0100 Subject: [PATCH] Fix eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes this: $ nix-env -f . -qa \* --meta --xml --drv-path --show-trace >/dev/null ... error: while querying the derivation named ‘pypy2.5-graph-tool-2.2.36’: while evaluating the attribute ‘preConfigure’ of the derivation ‘pypy2.5-graph-tool-2.2.36’ at "/home/bfo/nixpkgs/pkgs/development/python-modules/graph-tool/2.x.x.nix":5:3: attribute ‘sitePackages’ missing, at "/home/bfo/nixpkgs/pkgs/development/python-modules/graph-tool/2.x.x.nix":22:54 --- pkgs/development/python-modules/graph-tool/2.x.x.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/graph-tool/2.x.x.nix b/pkgs/development/python-modules/graph-tool/2.x.x.nix index 835b4f6514a..7a5bf440b5e 100644 --- a/pkgs/development/python-modules/graph-tool/2.x.x.nix +++ b/pkgs/development/python-modules/graph-tool/2.x.x.nix @@ -1,5 +1,8 @@ { stdenv, fetchurl, python, cairomm, sparsehash, pycairo, automake, m4, pkgconfig, boost, expat, scipy, numpy, cgal, gmp, mpfr, lndir, makeWrapper }: +# pypy lacks the sitePackages attribute used in this expression +assert python.executable != "pypy"; + stdenv.mkDerivation rec { version = "2.2.36"; name = "${python.libPrefix}-graph-tool-${version}";