nixpkgs/pkgs/development/python-modules/hyperlink/default.nix

26 lines
575 B
Nix
Raw Normal View History

2017-08-15 08:44:28 +01:00
{ stdenv, buildPythonPackage, fetchurl, pytest }:
2017-08-15 08:44:28 +01:00
buildPythonPackage rec {
pname = "hyperlink";
2017-08-15 08:44:28 +01:00
version = "17.3.0";
name = pname + "-" + version;
2017-08-15 08:44:28 +01:00
src = fetchurl {
url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
sha256 = "06mgnxwjzx8hv34bifc7jvgxz21ixhk5s6xy2kd84hdrlbfvpbfx";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test $out
'';
meta = with stdenv.lib; {
description = "A featureful, correct URL for Python";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ apeschar ];
};
}