1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pandas,
7 typing-extensions,
8 pytestCheckHook,
9 pytest-mock,
10 scikit-learn,
11}:
12
13buildPythonPackage rec {
14 pname = "kotsu";
15 version = "0.3.3";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "datavaluepeople";
22 repo = "kotsu";
23 rev = "v${version}";
24 hash = "sha256-V5OkgiLUTRNbNt6m94+aYUZd9Nw+/60LfhrqqdFhiUw=";
25 };
26
27 patches = [ ./disable-pytest-coverage-flags.patch ];
28
29 propagatedBuildInputs = [
30 pandas
31 typing-extensions
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 pytest-mock
37 scikit-learn
38 ];
39 pythonImportsCheck = [ "kotsu" ];
40
41 meta = with lib; {
42 description = "Lightweight framework for structured and repeatable model validation";
43 homepage = "https://github.com/datavaluepeople/kotsu";
44 changelog = "https://github.com/datavaluepeople/kotsu/blob/${src.rev}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ mbalatsko ];
47 };
48}