carddav-util: use python2

This commit is contained in:
Frederik Rietdijk 2021-03-25 11:20:36 +01:00
parent 137fb57d98
commit f19233bea9

View File

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