1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 setuptools-scm,
8 tempora,
9}:
10
11buildPythonPackage rec {
12 pname = "jaraco-logging";
13 version = "3.4.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 pname = "jaraco_logging";
20 inherit version;
21 hash = "sha256-59bcg2hHfOaesdbthR2AWJahypQs4/0Xc1gDEbC3dfs=";
22 };
23
24 postPatch = ''
25 sed -i "/coherent\.licensed/d" pyproject.toml
26 '';
27
28 pythonNamespaces = [ "jaraco" ];
29
30 nativeBuildInputs = [
31 setuptools
32 setuptools-scm
33 ];
34
35 propagatedBuildInputs = [ tempora ];
36
37 # test no longer packaged with pypi
38 doCheck = false;
39
40 pythonImportsCheck = [ "jaraco.logging" ];
41
42 meta = with lib; {
43 description = "Support for Python logging facility";
44 homepage = "https://github.com/jaraco/jaraco.logging";
45 changelog = "https://github.com/jaraco/jaraco.logging/blob/v${version}/NEWS.rst";
46 license = licenses.mit;
47 maintainers = [ ];
48 };
49}