git-bz: stay with python2

This commit is contained in:
Frederik Rietdijk 2021-03-25 15:28:57 +01:00
parent 09b2a0c0af
commit e5f9db3135

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchgit
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, makeWrapper, xmlto
, pythonPackages }:
, python2Packages }:
stdenv.mkDerivation {
pname = "git-bz";
@ -16,7 +16,7 @@ stdenv.mkDerivation {
asciidoc docbook_xml_dtd_45 docbook_xsl libxslt makeWrapper xmlto
];
buildInputs = []
++ (with pythonPackages; [ python pysqlite ]);
++ (with python2Packages; [ python pysqlite ]);
postPatch = ''
patchShebangs configure
@ -27,8 +27,8 @@ stdenv.mkDerivation {
postInstall = ''
wrapProgram $out/bin/git-bz \
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pycrypto}")" \
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pysqlite}")"
--prefix PYTHONPATH : "$(toPythonPath "${python2Packages.pycrypto}")" \
--prefix PYTHONPATH : "$(toPythonPath "${python2Packages.pysqlite}")"
'';
meta = with lib; {