1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 setuptools-scm, 10 11 # dependencies 12 importlib-metadata, 13 14 # Reverse dependency 15 sage, 16 17 # tests 18 jaraco-collections, 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "importlib-resources"; 24 version = "6.3.2"; 25 pyproject = true; 26 27 disabled = pythonOlder "3.6"; 28 29 src = fetchPypi { 30 pname = "importlib_resources"; 31 inherit version; 32 hash = "sha256-lj63lkklKwFgwa/P5aHT/jrWbt0KixFL6s/7cMBnQiM="; 33 }; 34 35 build-system = [ 36 setuptools 37 setuptools-scm 38 ]; 39 40 dependencies = [ importlib-metadata ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 jaraco-collections 45 ]; 46 47 pythonImportsCheck = [ "importlib_resources" ]; 48 49 passthru.tests = { 50 inherit sage; 51 }; 52 53 meta = with lib; { 54 description = "Read resources from Python packages"; 55 homepage = "https://importlib-resources.readthedocs.io/"; 56 license = licenses.asl20; 57 maintainers = [ ]; 58 }; 59}