blob: d4d050a6b87c8b4bca10827ab2c725806db6cffc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
}:
buildPythonPackage rec {
pname = "ec2-metadata";
version = "2.17.0";
pyproject = true;
src = fetchPypi {
pname = "ec2_metadata";
inherit version;
hash = "sha256-rZilr9j09J9ojkiZ3FBSV9oyNzSHYezusPx/x9AMyQ0=";
};
build-system = [
setuptools
];
dependencies = [
requests
];
pythonImportsCheck = [
"ec2_metadata"
];
meta = {
description = "Easy interface to query the EC2 metadata API, with caching";
homepage = "https://pypi.org/project/ec2-metadata/";
changelog = "https://github.com/adamchainz/ec2-metadata/blob/${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ _9999years ];
mainProgram = "ec2-metadata";
};
}
|