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

26 lines
587 B
Nix
Raw Normal View History

2017-08-15 07:44:28 +00:00
{ stdenv, buildPythonPackage, fetchurl, pytest }:
2017-08-15 07:44:28 +00:00
buildPythonPackage rec {
pname = "hyperlink";
2018-02-26 17:45:27 +00:00
version = "18.0.0";
name = pname + "-" + version;
2017-08-15 07:44:28 +00:00
src = fetchurl {
url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
2018-02-26 17:45:27 +00:00
sha256 = "f01b4ff744f14bc5d0a22a6b9f1525ab7d6312cb0ff967f59414bbac52f0a306";
2017-08-15 07:44:28 +00:00
};
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 ];
};
}