1{
2 buildPythonPackage,
3 fetchPypi,
4 httpx,
5 lib,
6 linode-cli,
7 pytest,
8 pytest-asyncio,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "linode-metadata";
14 version = "0.3.1";
15
16 src = fetchPypi {
17 pname = "linode_metadata";
18 inherit version;
19 hash = "sha256-EnOW3o3Y/6wzX8z4JIWqy0zSkP2iyQQfDxHBXmKt3mQ=";
20 };
21
22 pyproject = true;
23
24 dependencies = [
25 httpx
26 setuptools
27 ];
28
29 checkInputs = [
30 pytest
31 pytest-asyncio
32 ];
33
34 pythonImportsCheck = [ "linode_metadata" ];
35
36 meta = {
37 description = "Python package for interacting with the Linode Metadata Service";
38 downloadPage = "https://pypi.org/project/linode-metadata/";
39 homepage = "https://github.com/linode/py-metadata";
40 changelog = "https://github.com/linode/py-metadata/releases/tag/v${version}";
41 license = lib.licenses.bsd3;
42 maintainers = linode-cli.meta.maintainers;
43 };
44}