mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
28 lines
630 B
Nix
28 lines
630 B
Nix
{ stdenv, buildPythonPackage, fetchurl, idna, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hyperlink";
|
|
version = "18.0.0";
|
|
name = pname + "-" + version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
|
|
sha256 = "f01b4ff744f14bc5d0a22a6b9f1525ab7d6312cb0ff967f59414bbac52f0a306";
|
|
};
|
|
|
|
propagatedBuildInputs = [ idna ];
|
|
|
|
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 ];
|
|
};
|
|
}
|