mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 14:23:40 +00:00
39 lines
780 B
Nix
39 lines
780 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitLab,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "logboth";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "zehkira";
|
|
repo = "logboth";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-B+J7l8/IR7I85CTxcW3hFqOVHP6ig9MsNd72x4JGsYY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
checkPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
python3 source/tests/tests.py
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "logboth" ];
|
|
|
|
meta = {
|
|
description = "Easily write logs to standard output and a file at the same time";
|
|
homepage = "https://gitlab.com/zehkira/logboth";
|
|
license = lib.licenses.bsd0;
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
};
|
|
})
|