1{
2 lib,
3 buildPythonPackage,
4 poetry-core,
5 fetchFromGitHub,
6 pytestCheckHook,
7 doubles,
8 msgspec,
9 numpy,
10 pandas,
11 pydantic,
12 scikit-learn,
13 scipy,
14 toolz,
15}:
16
17buildPythonPackage rec {
18 pname = "saiph";
19 version = "2.0.3";
20
21 src = fetchFromGitHub {
22 owner = "octopize";
23 repo = "saiph";
24 tag = "saiph-v${version}";
25 hash = "sha256-8AbV3kjPxjZo28CgahfbdNl9+ESWOfUt8YT+mWwbo5Q=";
26 };
27
28 pyproject = true;
29
30 build-system = [
31 poetry-core
32 ];
33
34 dependencies = [
35 doubles
36 msgspec
37 numpy
38 pandas
39 pydantic
40 scikit-learn
41 scipy
42 toolz
43 ];
44
45 # No need for benchmarks
46 disabledTests = [
47 "benchmark_test.py"
48 ];
49
50 nativeCheckInputs = [
51 pytestCheckHook
52 ];
53
54 pythonRelaxDeps = true;
55
56 pythonImportsCheck = [
57 "saiph"
58 ];
59
60 meta = {
61 description = "Package enabling to project data";
62 homepage = "https://github.com/octopize/saiph";
63 license = lib.licenses.asl20;
64 maintainers = with lib.maintainers; [ b-rodrigues ];
65 };
66}