carddav-util: use python2
This commit is contained in:
parent
137fb57d98
commit
f19233bea9
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchgit, python, pythonPackages, makeWrapper }:
|
||||
{ lib, stdenv, fetchgit, python3Packages, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
|
@ -12,7 +12,9 @@ stdenv.mkDerivation {
|
|||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [ requests vobject lxml ];
|
||||
propagatedBuildInputs = with python3Packages; [ requests vobject lxml ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
doCheck = false; # no test
|
||||
|
||||
|
@ -20,7 +22,7 @@ stdenv.mkDerivation {
|
|||
mkdir -p $out/bin
|
||||
cp $src/carddav-util.py $out/bin
|
||||
|
||||
pythondir="$out/lib/${python.libPrefix}/site-packages"
|
||||
pythondir="$out/lib/${python3Packages.python.sitePackages}"
|
||||
mkdir -p "$pythondir"
|
||||
cp $src/carddav.py "$pythondir"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue