depot/third_party/nixpkgs/pkgs/development/python-modules/importlib-resources/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

61 lines
1,019 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build-system
setuptools,
setuptools-scm,
# dependencies
importlib-metadata,
# Reverse dependency
sage,
# tests
jaraco-collections,
jaraco-test,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "importlib-resources";
version = "6.4.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "importlib_resources";
inherit version;
hash = "sha256-zbK0U7gEbKTjeY6x2E88zhRGoOjnte9O+2APGfw5gUU=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ importlib-metadata ];
nativeCheckInputs = [
pytestCheckHook
jaraco-collections
jaraco-test
];
pythonImportsCheck = [ "importlib_resources" ];
passthru.tests = {
inherit sage;
};
meta = with lib; {
description = "Read resources from Python packages";
homepage = "https://importlib-resources.readthedocs.io/";
license = licenses.asl20;
maintainers = [ ];
};
}