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