depot/third_party/nixpkgs/pkgs/development/python-modules/importlib-resources/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

48 lines
878 B
Nix

{ lib
, isPy27
, buildPythonPackage
, fetchPypi
, setuptools-scm
, importlib-metadata
, typing ? null
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "importlib-resources";
version = "5.9.0";
format = "pyproject";
disabled = isPy27;
src = fetchPypi {
pname = "importlib_resources";
inherit version;
sha256 = "sha256-VIHpf7Ra+Nzy95iVJiVZHFj+WZ0HNdhrEPVN4IamFoE=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
importlib-metadata
] ++ lib.optionals (pythonOlder "3.5") [
typing
];
checkInputs = [
unittestCheckHook
];
pythonImportsCheck = [
"importlib_resources"
];
meta = with lib; {
description = "Read resources from Python packages";
homepage = "https://importlib-resources.readthedocs.io/";
license = licenses.asl20;
maintainers = [ ];
};
}