blob: df0b7cec7906b173e24fd2b34373b0aa06c24e53 (
plain) (
blame)
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
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "dllogger";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "NVIDIA";
repo = "dllogger";
rev = "refs/tags/v${version}";
hash = "sha256-Hpr4yeRl+Dyaz6lRyH/5P6UQT184JEHPqgVlf4qHvOg=";
};
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 = with lib; {
description = "Logging tool for deep learning";
homepage = "https://github.com/NVIDIA/dllogger";
changelog = "https://github.com/NVIDIA/dllogger/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
};
}
|