Files
nixpkgs/pkgs/development/python-modules/logmatic-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
821 B
Nix

{
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";
tag = version;
hash = "sha256-UYKm00KhXnPQDkKJVm7s0gOwZ3GNY07O0oKbzPhAdVE=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ python-json-logger ];
# Only functional tests, no unit tests
doCheck = false;
pythonImportsCheck = [ "logmatic" ];
meta = {
description = "Python helpers to send logs to Logmatic.io";
homepage = "https://github.com/logmatic/logmatic-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}