Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ 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 = "7.1.0"; pyproject = true;
src = fetchPypi { pname = "importlib_resources"; inherit version; hash = "sha256-ByLUxiEkicUw8qFFo0wKejtHIbyWoV+tpZMOKgt2Bwg="; };
postPatch = '' sed -i '/coherent.licensed/d' pyproject.toml '';
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 = [ ]; };}