2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
2021-05-03 20:48:10 +00:00
|
|
|
, setuptools-scm
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# dependencies
|
2020-06-18 07:06:33 +00:00
|
|
|
, importlib-metadata
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, jaraco-collections
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-05-03 20:48:10 +00:00
|
|
|
pname = "importlib-resources";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "6.1.3";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-05-03 20:48:10 +00:00
|
|
|
pname = "importlib_resources";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-VvtFJRl7eFRKM1TqJ3k5UquT+TW7S/dGuEa7EBUCDys=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2021-12-06 16:07:01 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2020-06-18 07:06:33 +00:00
|
|
|
importlib-metadata
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
jaraco-collections
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"importlib_resources"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Read resources from Python packages";
|
|
|
|
homepage = "https://importlib-resources.readthedocs.io/";
|
|
|
|
license = licenses.asl20;
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|