Files
nixpkgs/pkgs/development/python-modules/hyperlink/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
628 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
idna,
typing ? null,
}:
buildPythonPackage rec {
pname = "hyperlink";
version = "21.0.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0sx50lkivsfjxx9zr4yh7l9gll2l9kvl0v0w8w4wk2x5v9bzjyj2";
};
propagatedBuildInputs = [ idna ] ++ lib.optionals isPy27 [ typing ];
meta = {
description = "Featureful, correct URL for Python";
homepage = "https://github.com/python-hyper/hyperlink";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ apeschar ];
};
}