Files
nixpkgs/pkgs/development/python-modules/jaraco-logging/default.nix
T
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

50 lines
974 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
setuptools-scm,
tempora,
}:
buildPythonPackage rec {
pname = "jaraco-logging";
version = "3.4.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "jaraco_logging";
inherit version;
hash = "sha256-59bcg2hHfOaesdbthR2AWJahypQs4/0Xc1gDEbC3dfs=";
};
postPatch = ''
sed -i "/coherent\.licensed/d" pyproject.toml
'';
pythonNamespaces = [ "jaraco" ];
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ tempora ];
# test no longer packaged with pypi
doCheck = false;
pythonImportsCheck = [ "jaraco.logging" ];
meta = {
description = "Support for Python logging facility";
homepage = "https://github.com/jaraco/jaraco.logging";
changelog = "https://github.com/jaraco/jaraco.logging/blob/v${version}/NEWS.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}