nixpkgs/pkgs/development/python-modules/importlib-resources/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

58 lines
965 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# 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;
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 = [ ];
};
}