blob: 24001a85b1a7a2acdb022cb6059f5bad1e851e8a (
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
46
47
48
49
50
51
52
53
54
55
|
{
absl-py,
buildPythonPackage,
contextlib2,
fetchFromGitHub,
lib,
pyyaml,
six,
flit-core,
pytestCheckHook,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "ml-collections";
version = "1.1.0";
pyproject = true;
build-system = [ flit-core ];
src = fetchFromGitHub {
owner = "google";
repo = "ml_collections";
tag = "v${version}";
hash = "sha256-G9+UBqHalzI3quR8T5NEgJs+ep60ffFw9vyTTZDeZ9M=";
};
dependencies = [
six
absl-py
contextlib2
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
enabledTestPaths = [
"ml_collections/"
];
disabledTestPaths = [
"ml_collections/config_dict/examples/examples_test.py" # From github workflows
];
pythonImportsCheck = [ "ml_collections" ];
meta = {
description = "ML Collections is a library of Python collections designed for ML usecases";
homepage = "https://github.com/google/ml_collections";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ samuela ];
};
}
|