diff options
Diffstat (limited to 'pkgs/development/python-modules/importlib-resources/default.nix')
-rw-r--r-- | pkgs/development/python-modules/importlib-resources/default.nix | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index a8407239cc402..43c9826aa1ba2 100644 --- a/pkgs/development/python-modules/importlib-resources/default.nix +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -1,18 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, importlib-metadata + # dependencies + importlib-metadata, -# tests -, jaraco-collections -, pytestCheckHook + # Reverse dependency + sage, + + # tests + jaraco-collections, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,18 +37,18 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - importlib-metadata - ]; + dependencies = [ importlib-metadata ]; nativeCheckInputs = [ pytestCheckHook jaraco-collections ]; - pythonImportsCheck = [ - "importlib_resources" - ]; + pythonImportsCheck = [ "importlib_resources" ]; + + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Read resources from Python packages"; |