Files
nixpkgs/pkgs/development/python-modules/importlib-resources/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1013 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.5.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "importlib_resources";
inherit version;
hash = "sha256-GF+Hre9bzCiESdmPtPugfOp4vANkVd1ExfxKL+eP7Sw=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ importlib-metadata ];
nativeCheckInputs = [
pytestCheckHook
jaraco-collections
jaraco-test
];
pythonImportsCheck = [ "importlib_resources" ];
passthru.tests = {
inherit sage;
};
meta = {
description = "Read resources from Python packages";
homepage = "https://importlib-resources.readthedocs.io/";
license = lib.licenses.asl20;
maintainers = [ ];
};
}