Merge pull request #26078 from mt-caret/3to2-fetchpypi

3to2: refactor to use fetchpypi
This commit is contained in:
Daiderd Jordan 2017-05-25 19:24:27 +02:00 committed by GitHub
commit 43aa3017e4

View File

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchurl
, fetchPypi
, pytest
}:
@ -9,8 +9,9 @@ buildPythonPackage rec {
version = "1.1.1";
name = "${pname}-${version}";
src = fetchurl {
url = "https://files.pythonhosted.org/packages/8f/ab/58a363eca982c40e9ee5a7ca439e8ffc5243dde2ae660ba1ffdd4868026b/${pname}-${version}.zip";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "fef50b2b881ef743f269946e1090b77567b71bb9a9ce64b7f8e699b562ff685c";
};