depot/third_party/nixpkgs/pkgs/development/python-modules/linode-metadata/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

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;
};
}