From e3f435fa95e9fa7f61d32d879fe27e3774986d74 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 22 Dec 2019 11:50:24 -0800 Subject: [PATCH] python3Packages.twine: fix build deps --- .../python-modules/twine/default.nix | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/twine/default.nix b/pkgs/development/python-modules/twine/default.nix index 05febed4cb25..762df433f973 100644 --- a/pkgs/development/python-modules/twine/default.nix +++ b/pkgs/development/python-modules/twine/default.nix @@ -1,13 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ lib, buildPythonPackage, fetchPypi, pythonOlder +, importlib-metadata +, keyring , pkginfo -, requests -, requests_toolbelt -, tqdm , pyblake2 , readme_renderer +, requests +, requests_toolbelt +, setuptools_scm +, tqdm }: buildPythonPackage rec { @@ -20,7 +20,16 @@ buildPythonPackage rec { sha256 = "d561a5e511f70275e5a485a6275ff61851c16ffcb3a95a602189161112d9f160"; }; - propagatedBuildInputs = [ pkginfo requests requests_toolbelt tqdm pyblake2 readme_renderer ]; + nativeBuildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ + keyring + pkginfo + pyblake2 + readme_renderer + requests + requests_toolbelt + tqdm + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # Requires network doCheck = false;