pythonPackages.backports-entry-points-selectable: init at 1.0.3

This commit is contained in:
sternenseemann 2021-04-04 18:46:44 +02:00
parent 131299a60f
commit 596e5eed55
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, importlib-metadata
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "backports.entry-points-selectable";
version = "1.0.3";
src = fetchPypi {
inherit version;
# pypi project name and tarball name differ
pname = builtins.replaceStrings [ "-" ] [ "_" ] pname;
sha256 = "f30bcd19c5e2728ac93821d2b6ae0a325597e0ca12324fd91a39fa80e1cd0dd8";
};
format = "pyproject";
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Compatibility shim providing selectable entry points for older implementations";
license = licenses.mit;
maintainers = [ maintainers.sternenseemann ];
homepage = "https://github.com/jaraco/backports.entry_points_selectable";
};
}

View file

@ -896,6 +896,8 @@ in {
backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { };
backports-entry-points-selectable = callPackage ../development/python-modules/backports-entry-points-selectable { };
backports_functools_lru_cache = callPackage ../development/python-modules/backports_functools_lru_cache { };
backports_lzma = callPackage ../development/python-modules/backports_lzma { };