nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 httpx,
7 pytest-asyncio,
8 pytest-httpx,
9 pytestCheckHook,
10 yarl,
11}:
12
13buildPythonPackage rec {
14 pname = "netdata";
15 version = "1.3.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "home-assistant-ecosystem";
20 repo = "python-netdata";
21 tag = version;
22 hash = "sha256-Et9T/+xonHSXjGQabgizW4pVBIYpTz0flud+vlfBNQE=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [
28 httpx
29 yarl
30 ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
34 pytest-httpx
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "netdata" ];
39
40 meta = {
41 description = "Python API for interacting with Netdata";
42 homepage = "https://github.com/home-assistant-ecosystem/python-netdata";
43 changelog = "https://github.com/home-assistant-ecosystem/python-netdata/releases/tag/${version}";
44 license = with lib.licenses; [ mit ];
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}