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
This commit is contained in:
Bjørn Forsman 2015-02-23 19:43:02 +01:00
parent 82c280c5b5
commit 6afc1907c8

View file

@ -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}";