2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
importlib-metadata,
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "backports-entry-points-selectable";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.3.0";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "backports.entry_points_selectable";
|
2021-04-26 19:14:03 +00:00
|
|
|
inherit version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-F6i0SucA+6VIaG3SdN3JHAYDcVZc1jgGwgodM5EXRuY=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "backports.entry_points_selectable" ];
|
|
|
|
|
|
|
|
pythonNamespaces = [ "backports" ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/jaraco/backports.entry_points_selectable/blob/v${version}/CHANGES.rst";
|
2021-04-26 19:14:03 +00:00
|
|
|
description = "Compatibility shim providing selectable entry points for older implementations";
|
|
|
|
homepage = "https://github.com/jaraco/backports.entry_points_selectable";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|