Files
nixpkgs/pkgs/development/python-modules/backports-entry-points-selectable/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

42 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools-scm,
importlib-metadata,
}:
buildPythonPackage rec {
pname = "backports-entry-points-selectable";
version = "1.3.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "backports.entry_points_selectable";
inherit version;
hash = "sha256-F6i0SucA+6VIaG3SdN3JHAYDcVZc1jgGwgodM5EXRuY=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# no tests
doCheck = false;
pythonImportsCheck = [ "backports.entry_points_selectable" ];
pythonNamespaces = [ "backports" ];
meta = {
changelog = "https://github.com/jaraco/backports.entry_points_selectable/blob/v${version}/CHANGES.rst";
description = "Compatibility shim providing selectable entry points for older implementations";
homepage = "https://github.com/jaraco/backports.entry_points_selectable";
license = lib.licenses.mit;
maintainers = [ ];
};
}