Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / logmatic-python / default.nix
blob24416041f7b26fb8c830606bedf4abe97ed9f106
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python-json-logger
5 , pythonOlder
6 , setuptools
7 }:
9 buildPythonPackage rec {
10   pname = "logmatic-python";
11   version = "0.1.7";
12   pyproject = true;
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "logmatic";
18     repo = "logmatic-python";
19     rev = "refs/tags/${version}";
20     hash = "sha256-UYKm00KhXnPQDkKJVm7s0gOwZ3GNY07O0oKbzPhAdVE=";
21   };
23   nativeBuildInputs = [
24     setuptools
25   ];
27   propagatedBuildInputs = [
28     python-json-logger
29   ];
31   # Only functional tests, no unit tests
32   doCheck = false;
34   pythonImportsCheck = [
35     "logmatic"
36   ];
38   meta = with lib; {
39     description = "Python helpers to send logs to Logmatic.io";
40     homepage = "https://github.com/logmatic/logmatic-python";
41     license = licenses.mit;
42     maintainers = with maintainers; [ fab ];
43   };