summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rrdtool/default.nix
blob: 73f8d46e6631b3f2a7a63c2b862ae3a58a90a58d (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
41
42
43
44
45
46
47
48
49
{
  lib,
  pkgs,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "rrdtool";
  version = "0.1.16";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "commx";
    repo = "python-rrdtool";
    tag = "v${version}";
    hash = "sha256-xBMyY2/lY16H7D0JX5BhgHV5afDKKDObPJnynZ4iZdI=";
  };

  build-system = [
    setuptools
  ];

  buildInputs = [
    pkgs.rrdtool
  ];

  env.NIX_CFLAGS_COMPILE = toString [
    "-Wno-error=implicit-function-declaration"
    "-Wno-error=incompatible-pointer-types"
  ];

  pythonImportsCheck = [ "rrdtool" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Python bindings for rrdtool";
    homepage = "https://github.com/commx/python-rrdtool";
    license = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}