about summary refs log tree commit diff
path: root/pkgs/development/python-modules/logmatic-python/default.nix
blob: 24416041f7b26fb8c830606bedf4abe97ed9f106 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, python-json-logger
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "logmatic-python";
  version = "0.1.7";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "logmatic";
    repo = "logmatic-python";
    rev = "refs/tags/${version}";
    hash = "sha256-UYKm00KhXnPQDkKJVm7s0gOwZ3GNY07O0oKbzPhAdVE=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    python-json-logger
  ];

  # Only functional tests, no unit tests
  doCheck = false;

  pythonImportsCheck = [
    "logmatic"
  ];

  meta = with lib; {
    description = "Python helpers to send logs to Logmatic.io";
    homepage = "https://github.com/logmatic/logmatic-python";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}