@@ -0,0 +1,32 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, portalocker
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "concurrent-log-handler";
9+ version = "0.9.19";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ hash = "sha256-sS95q+0/lBIcJc6cJM21fYiSguxv9h9VNasgaNw31Ak=";
14+ };
15+
16+ propagatedBuildInputs = [
17+ portalocker
18+ ];
19+
20+ pythonImportsCheck = [
21+ "concurrent_log_handler"
22+ ];
23+
24+ doCheck = false; # upstream has no tests
25+
26+ meta = with lib; {
27+ description = "Python logging handler that allows multiple processes to safely write to the same log file concurrently";
28+ homepage = "https://www.chia.net/";
29+ license = licenses.asl20;
30+ maintainers = teams.chia.members;
31+ };
32+}