python3Packages.kotsu: init at 0.3.3

This commit is contained in:
Maksym Balatsko 2023-09-17 07:36:32 -07:00
parent 970a59bd19
commit f6b76f03c7
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pandas
, typing-extensions
, pytestCheckHook
, pytest-mock
, scikit-learn
}:
buildPythonPackage rec {
pname = "kotsu";
version = "0.3.3";
format = "setuptools";
disable = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "datavaluepeople";
repo = "kotsu";
rev = "v${version}";
hash = "sha256-V5OkgiLUTRNbNt6m94+aYUZd9Nw+/60LfhrqqdFhiUw=";
};
patches = [
./disable-pytest-coverage-flags.patch
];
propagatedBuildInputs = [ pandas typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
scikit-learn
];
pythonImportsCheck = [ "kotsu" ];
meta = with lib; {
description = "Lightweight framework for structured and repeatable model validation";
homepage = "https://github.com/datavaluepeople/kotsu";
changelog = "https://github.com/datavaluepeople/kotsu/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}

View File

@ -0,0 +1,18 @@
diff --git a/setup.cfg b/setup.cfg
index 3ab277a..b253e18 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -50,13 +50,6 @@ convention = google
add_ignore = D105, D107
#add_ignore = D100,D101,D102,D103,D104,D200 - start with no ignored errors and add as required
-[tool:pytest]
-addopts = --cov=./kotsu --cov-report xml --cov-report term
-
-[coverage:run]
-# Omit auto-generated versioneer file from test coverage
-omit = kotsu/_version.py
-
[versioneer]
VCS = git
style = pep440

View File

@ -5854,6 +5854,8 @@ self: super: with self; {
konnected = callPackage ../development/python-modules/konnected { };
kotsu = callPackage ../development/python-modules/kotsu { };
korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { };
kornia = callPackage ../development/python-modules/kornia { };