pythonPackages.hyperlink: modernize expression

This commit is contained in:
Robert Schütz 2018-02-26 21:00:28 +01:00
parent d2124e3f93
commit a367095153

View File

@ -1,12 +1,11 @@
{ stdenv, buildPythonPackage, fetchurl, idna, pytest }: { stdenv, buildPythonPackage, fetchPypi, idna, pytest }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "hyperlink"; pname = "hyperlink";
version = "18.0.0"; version = "18.0.0";
name = pname + "-" + version;
src = fetchurl { src = fetchPypi {
url = "mirror://pypi/h/hyperlink/${name}.tar.gz"; inherit pname version;
sha256 = "f01b4ff744f14bc5d0a22a6b9f1525ab7d6312cb0ff967f59414bbac52f0a306"; sha256 = "f01b4ff744f14bc5d0a22a6b9f1525ab7d6312cb0ff967f59414bbac52f0a306";
}; };