nixpkgs/pkgs/development/python-modules/aiohttp-openmetrics/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

34 lines
643 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, prometheus-client
}:
buildPythonPackage rec {
pname = "aiohttp-openmetrics";
version = "0.0.11";
src = fetchPypi {
inherit pname version;
hash = "sha256-GIVUkjyn+iQSMZZ6dNmmimvbt+t+uxOYv2QEDk/dA+g=";
};
propagatedBuildInputs = [
aiohttp
prometheus-client
];
# no tests
doCheck = false;
pythonImportsCheck = [ "aiohttp_openmetrics" ];
meta = with lib; {
description = "OpenMetrics provider for aiohttp";
homepage = "https://github.com/jelmer/aiohttp-openmetrics/";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}