f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
44 lines
890 B
Nix
44 lines
890 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
httpx,
|
|
lib,
|
|
linode-cli,
|
|
pytest,
|
|
pytest-asyncio,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "linode-metadata";
|
|
version = "0.3.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "linode_metadata";
|
|
inherit version;
|
|
hash = "sha256-ZFCv9f4hbiBaJuKvzs/BGFoP+mAFwVa8OFF22b22voI=";
|
|
};
|
|
|
|
pyproject = true;
|
|
|
|
dependencies = [
|
|
httpx
|
|
setuptools
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytest-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [ "linode_metadata" ];
|
|
|
|
meta = {
|
|
description = "Python package for interacting with the Linode Metadata Service";
|
|
downloadPage = "https://pypi.org/project/linode-metadata/";
|
|
homepage = "https://github.com/linode/py-metadata";
|
|
changelog = "https://github.com/linode/py-metadata/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = linode-cli.meta.maintainers;
|
|
};
|
|
}
|