1{ stdenv, buildPythonPackage, fetchurl, pytest }:
2
3buildPythonPackage rec {
4 pname = "hyperlink";
5 version = "17.3.1";
6 name = pname + "-" + version;
7
8 src = fetchurl {
9 url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
10 sha256 = "bc4ffdbde9bdad204d507bd8f554f16bba82dd356f6130cb16f41422909c33bc";
11 };
12
13 checkInputs = [ pytest ];
14
15 checkPhase = ''
16 py.test $out
17 '';
18
19 meta = with stdenv.lib; {
20 description = "A featureful, correct URL for Python";
21 license = licenses.mit;
22 platforms = platforms.all;
23 maintainers = with maintainers; [ apeschar ];
24 };
25}