diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2016-08-31 11:01:16 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2016-09-01 16:16:31 +0200 |
commit | 4f6b6f14726296c1d402f187db995031bccd791f (patch) | |
tree | 56b714c2eb6d16e4bfd98f9c64c84fbfbac3c031 /pkgs/development/python-modules/pyxml | |
parent | e9c4d00cacea699c0e23e7c09967dd3fe12edc23 (diff) | |
download | nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.gz nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.bz2 nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.lz nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.xz nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.zst nixlib-4f6b6f14726296c1d402f187db995031bccd791f.zip |
pythonPackages: use mkPythonDerivation
Diffstat (limited to 'pkgs/development/python-modules/pyxml')
-rw-r--r-- | pkgs/development/python-modules/pyxml/default.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pyxml/default.nix b/pkgs/development/python-modules/pyxml/default.nix index 3c36565b5266..abea143d11da 100644 --- a/pkgs/development/python-modules/pyxml/default.nix +++ b/pkgs/development/python-modules/pyxml/default.nix @@ -1,22 +1,21 @@ -{stdenv, fetchurl, python, makeWrapper}: +{lib, fetchurl, python, mkPythonDerivation, makeWrapper}: -stdenv.mkDerivation rec { +mkPythonDerivation rec { name = "PyXML-0.8.4"; src = fetchurl { url = "mirror://sourceforge/pyxml/${name}.tar.gz"; sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz"; }; - buildInputs = [python makeWrapper]; - buildPhase = "python ./setup.py build"; + buildInputs = [ makeWrapper ]; + buildPhase = "${python.interpreter} ./setup.py build"; installPhase = '' - python ./setup.py install --prefix="$out" || exit 1 + ${python.interpreter} ./setup.py install --prefix="$out" || exit 1 for i in "$out/bin/"* do - # FIXME: We're assuming Python 2.4. wrapProgram "$i" --prefix PYTHONPATH : \ - "$out/lib/python2.4/site-packages" || \ + "$out/${python.sitePackages}" || \ exit 2 done ''; |