From 757a09c4377fb2a31033a3802798b5f115e34cd2 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Fri, 2 Apr 2021 17:10:40 +0200 Subject: [PATCH] duplicity: add setuptools_scm dependency --- pkgs/tools/backup/duplicity/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix index 399d6b9ada3..42db541cf3b 100644 --- a/pkgs/tools/backup/duplicity/default.nix +++ b/pkgs/tools/backup/duplicity/default.nix @@ -1,5 +1,4 @@ { lib, stdenv -, fetchpatch , fetchurl , pythonPackages , librsync @@ -9,7 +8,6 @@ , par2cmdline , util-linux , rsync -, backblaze-b2 , makeWrapper , gettext }: @@ -34,13 +32,17 @@ pythonPackages.buildPythonApplication rec { # to make the testing code stop assuming it is run from the source directory. ./use-installed-scripts-in-test.patch ] ++ lib.optionals stdenv.isLinux [ + # Broken on Linux in Nix' build environment ./linux-disable-timezone-test.patch ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = [ makeWrapper gettext pythonPackages.wrapPython + pythonPackages.setuptools-scm ]; buildInputs = [ librsync