carddav-util: use python2
This commit is contained in:
parent
137fb57d98
commit
f19233bea9
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchgit, python, pythonPackages, makeWrapper }:
|
{ lib, stdenv, fetchgit, python3Packages, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
||||||
@ -12,7 +12,9 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ requests vobject lxml ];
|
propagatedBuildInputs = with python3Packages; [ requests vobject lxml ];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
doCheck = false; # no test
|
doCheck = false; # no test
|
||||||
|
|
||||||
@ -20,7 +22,7 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp $src/carddav-util.py $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"
|
mkdir -p "$pythondir"
|
||||||
cp $src/carddav.py "$pythondir"
|
cp $src/carddav.py "$pythondir"
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user