python.pkgs.pytest: use fetchPypi

+3 -3
+3 -3
pkgs/development/python-modules/pytest/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchurl, isPy26, argparse, hypothesis, py 1 + { stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py 2 2 , setuptools_scm 3 3 }: 4 4 buildPythonPackage rec { ··· 11 11 rm testing/test_argcomplete.py 12 12 ''; 13 13 14 - src = fetchurl { 15 - url = "mirror://pypi/p/pytest/${name}.tar.gz"; 14 + src = fetchPypi { 15 + inherit pname version; 16 16 sha256 = "4c2159d2be2b4e13fa293e7a72bdf2f06848a017150d5c6d35112ce51cfd74ce"; 17 17 }; 18 18