depot/third_party/nixpkgs/pkgs/development/python-modules/pkgutil-resolve-name/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
1.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
buildPythonPackage,
fetchPypi,
fetchpatch,
lib,
nix-update-script,
pythonOlder,
flit-core,
}:
buildPythonPackage rec {
pname = "pkgutil-resolve-name";
version = "1.3.10";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "pkgutil_resolve_name";
inherit version;
hash = "sha256-NX1snmp1VlPP14iTgXwIU682XdUeyX89NYqBk3O70XQ=";
};
patches = [
# Raise flit-core version constrains
(fetchpatch {
# https://github.com/graingert/pkgutil-resolve-name/pull/5
url = "https://github.com/graingert/pkgutil-resolve-name/commit/042834290c735fa836bb308ce9e93c9f64d67cbe.patch";
hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk=";
})
];
nativeBuildInputs = [ flit-core ];
# has no tests
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://pypi.org/project/pkgutil_resolve_name/";
description = "Backport of Python 3.9s pkgutil.resolve_name";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yajo ];
};
}