From 883148ef265761adcfde487d16f56e077bc0aa69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Sun, 25 Jun 2017 18:55:07 +0200 Subject: [PATCH] pip-tools: fix build --- .../development/python-modules/pip-tools/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix index df2bcc03de42..5fa03a18aaa2 100644 --- a/pkgs/development/python-modules/pip-tools/default.nix +++ b/pkgs/development/python-modules/pip-tools/default.nix @@ -1,19 +1,17 @@ -{ stdenv, fetchFromGitHub, buildPythonPackage, pip, pytest, click, six, first, glibcLocales }: +{ stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first, setuptools_scm, glibcLocales }: buildPythonPackage rec { pname = "pip-tools"; version = "1.9.0"; name = "pip-tools-${version}"; - src = fetchFromGitHub { - owner = "jazzband"; - repo = "pip-tools"; - rev = version; - sha256 = "0706feb27263a2dade6d39cc508e718282bd08f455d0643f251659f905be4d56"; + src = fetchurl { + url = "mirror://pypi/p/pip-tools/${name}.tar.gz"; + sha256 = "0mjdpq2zjn8n4lzn9l2myh4bv0l2f6751k1rdpgdm8k3fargw1h7"; }; LC_ALL = "en_US.UTF-8"; buildInputs = [ pytest glibcLocales ]; - propagatedBuildInputs = [ pip click six first ]; + propagatedBuildInputs = [ pip click six first setuptools_scm ]; checkPhase = '' export HOME=$(mktemp -d)