nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 aiohttp,
6 prometheus-client,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "aiohttp-openmetrics";
12 version = "0.0.12";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA=";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [
23 aiohttp
24 prometheus-client
25 ];
26
27 # no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "aiohttp_openmetrics" ];
31
32 meta = {
33 description = "OpenMetrics provider for aiohttp";
34 homepage = "https://github.com/jelmer/aiohttp-openmetrics/";
35 changelog = "https://github.com/jelmer/aiohttp-openmetrics/releases/tag/v${version}";
36 license = lib.licenses.asl20;
37 maintainers = [ ];
38 };
39}