lol

Merge pull request #255695 from mbalatsko/init-kotsu

python3Packages.kotsu: init at 0.3.3

authored by

OTABI Tomoya and committed by
GitHub
ef0fd06d 7c74737c

+66
+46
pkgs/development/python-modules/kotsu/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , pandas 6 + , typing-extensions 7 + , pytestCheckHook 8 + , pytest-mock 9 + , scikit-learn 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "kotsu"; 14 + version = "0.3.3"; 15 + format = "setuptools"; 16 + 17 + disable = pythonOlder "3.7"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "datavaluepeople"; 21 + repo = "kotsu"; 22 + rev = "v${version}"; 23 + hash = "sha256-V5OkgiLUTRNbNt6m94+aYUZd9Nw+/60LfhrqqdFhiUw="; 24 + }; 25 + 26 + patches = [ 27 + ./disable-pytest-coverage-flags.patch 28 + ]; 29 + 30 + propagatedBuildInputs = [ pandas typing-extensions ]; 31 + 32 + nativeCheckInputs = [ 33 + pytestCheckHook 34 + pytest-mock 35 + scikit-learn 36 + ]; 37 + pythonImportsCheck = [ "kotsu" ]; 38 + 39 + meta = with lib; { 40 + description = "Lightweight framework for structured and repeatable model validation"; 41 + homepage = "https://github.com/datavaluepeople/kotsu"; 42 + changelog = "https://github.com/datavaluepeople/kotsu/blob/${src.rev}/CHANGELOG.md"; 43 + license = licenses.mit; 44 + maintainers = with maintainers; [ mbalatsko ]; 45 + }; 46 + }
+18
pkgs/development/python-modules/kotsu/disable-pytest-coverage-flags.patch
··· 1 + diff --git a/setup.cfg b/setup.cfg 2 + index 3ab277a..b253e18 100644 3 + --- a/setup.cfg 4 + +++ b/setup.cfg 5 + @@ -50,13 +50,6 @@ convention = google 6 + add_ignore = D105, D107 7 + #add_ignore = D100,D101,D102,D103,D104,D200 - start with no ignored errors and add as required 8 + 9 + -[tool:pytest] 10 + -addopts = --cov=./kotsu --cov-report xml --cov-report term 11 + - 12 + -[coverage:run] 13 + -# Omit auto-generated versioneer file from test coverage 14 + -omit = kotsu/_version.py 15 + - 16 + [versioneer] 17 + VCS = git 18 + style = pep440
+2
pkgs/top-level/python-packages.nix
··· 5858 5858 5859 5859 konnected = callPackage ../development/python-modules/konnected { }; 5860 5860 5861 + kotsu = callPackage ../development/python-modules/kotsu { }; 5862 + 5861 5863 korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { }; 5862 5864 5863 5865 kornia = callPackage ../development/python-modules/kornia { };