blob: fd8cafd87323ec08e9322b29bce3c8e768d70aad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "dllogger";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "NVIDIA";
repo = "dllogger";
tag = "v${version}";
hash = "sha256-kT6FhAl4JZlFPdzKYopAJBurYVMaU5umn/qZADfPjkE=";
};
nativeBuildInputs = [
setuptools
wheel
];
# use examples as smoke tests since upstream has no tests
checkPhase = ''
runHook preCheck
python examples/dllogger_example.py
python examples/dllogger_singleton_example.py
runHook postCheck
'';
pythonImportsCheck = [ "dllogger" ];
meta = {
description = "Logging tool for deep learning";
homepage = "https://github.com/NVIDIA/dllogger";
changelog = "https://github.com/NVIDIA/dllogger/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ natsukium ];
};
}
|