1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 scikit-learn,
7 pandas,
8 pytestCheckHook,
9 pytest-cov-stub,
10 pytest-xdist,
11 pytz,
12}:
13
14buildPythonPackage rec {
15 pname = "sklearn-compat";
16 version = "0.1.4";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "sklearn-compat";
21 repo = "sklearn-compat";
22 tag = version;
23 hash = "sha256-HTVEmvoXzhcmrJUs5nOXuENORmpc522bCW1rOlMAgxA=";
24 };
25
26 build-system = [
27 hatchling
28 ];
29
30 dependencies = [
31 scikit-learn
32 ];
33
34 nativeCheckInputs = [
35 pandas
36 pytestCheckHook
37 pytest-cov-stub
38 pytest-xdist
39 pytz
40 ];
41
42 pythonImportsCheck = [
43 "sklearn_compat"
44 ];
45
46 meta = {
47 description = "Ease multi-version support for scikit-learn compatible library";
48 homepage = "https://github.com/sklearn-compat/sklearn-compat";
49 license = lib.licenses.bsd3;
50 maintainers = with lib.maintainers; [ philipwilk ];
51 };
52}