1{
2 lib,
3 pkgs,
4 buildPythonPackage,
5 fetchFromGitHub,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rrdtool";
12 version = "0.1.16";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "commx";
17 repo = "python-rrdtool";
18 tag = "v${version}";
19 hash = "sha256-xBMyY2/lY16H7D0JX5BhgHV5afDKKDObPJnynZ4iZdI=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 buildInputs = [
27 pkgs.rrdtool
28 ];
29
30 env.NIX_CFLAGS_COMPILE = toString [
31 "-Wno-error=implicit-function-declaration"
32 "-Wno-error=incompatible-pointer-types"
33 ];
34
35 pythonImportsCheck = [ "rrdtool" ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 __darwinAllowLocalNetworking = true;
42
43 meta = {
44 description = "Python bindings for rrdtool";
45 homepage = "https://github.com/commx/python-rrdtool";
46 license = lib.licenses.lgpl21Only;
47 maintainers = with lib.maintainers; [ GaetanLepage ];
48 };
49}