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
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
tensorboard,
scipy,
tqdm,
scikit-learn,
munkres,
networkx,
torch,
pandas,
# test dependencies
pytestCheckHook,
spacy,
pyspark,
dill,
dask,
spacy-models,
}:
let
pname = "snorkel";
version = "0.10.0";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchFromGitHub {
owner = "snorkel-team";
repo = "snorkel";
tag = "v${version}";
hash = "sha256-1DgkMHYToiI3266yCND1bXiui80x8AaBttxM83kJImw=";
};
propagatedBuildInputs = [
tensorboard
scipy
tqdm
scikit-learn
munkres
networkx
torch
pandas
];
# test fail because of some wrong path references
# things like No such file or directory: '/nix/store/8r9x7xv9nfwmd36ca28a39xaharcjdzj-python3.10-pyspark-3.4.0/lib/python3.10/site-packages/pyspark/./bin/spark-submit'
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
spacy
pyspark
dill
dask
spacy-models.en_core_web_sm
]
++ dask.optional-dependencies.distributed;
meta = {
description = "System for quickly generating training data with weak supervision";
homepage = "https://github.com/snorkel-team/snorkel";
changelog = "https://github.com/snorkel/snorkel/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}
|