39 lines
780 B
Nix
39 lines
780 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitLab,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "logboth";
|
|
version = "0.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "zehkira";
|
|
repo = "logboth";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-R4FrZK8yxCZ5BFBFp/Fj/WyWa6+rIM6GHl3HZGgp5TI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|