depot/third_party/nixpkgs/pkgs/development/python-modules/backports-entry-points-selectable/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

32 lines
923 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools-scm, importlib-metadata }:
buildPythonPackage rec {
pname = "backports-entry-points-selectable";
version = "1.1.1";
src = fetchPypi {
pname = "backports.entry_points_selectable";
inherit version;
sha256 = "914b21a479fde881635f7af5adc7f6e38d6b274be32269070c53b698c60d5386";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# no tests
doCheck = false;
pythonImportsCheck = [ "backports.entry_points_selectable" ];
pythonNamespaces = [ "backports" ];
meta = with lib; {
description = "Compatibility shim providing selectable entry points for older implementations";
homepage = "https://github.com/jaraco/backports.entry_points_selectable";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}