python3Packages.logistro: init at 2.0.1
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "logistro";
|
||||
version = "2.0.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "geopozo";
|
||||
repo = "logistro";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-c/wHOXDPDUYvfJCcLodbHzFdXGscvXEmOyPKCuzPIT0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail ', "setuptools-git-versioning"' "" \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "logistro" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Wrapper for logging";
|
||||
homepage = "https://github.com/geopozo/logistro";
|
||||
changelog = "https://github.com/geopozo/logistro/blob/${finalAttrs.src.tag}/CHANGELOG.txt";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
})
|
||||
@@ -9237,6 +9237,8 @@ self: super: with self; {
|
||||
|
||||
logilab-constraint = callPackage ../development/python-modules/logilab/constraint.nix { };
|
||||
|
||||
logistro = callPackage ../development/python-modules/logistro { };
|
||||
|
||||
logmatic-python = callPackage ../development/python-modules/logmatic-python { };
|
||||
|
||||
logster = callPackage ../development/python-modules/logster { };
|
||||
|
||||
Reference in New Issue
Block a user