mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
python312Packages.type-infer: unpin py3langid and run tests (#364403)
This commit is contained in:
commit
f0d0484028
@ -2,16 +2,16 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
colorlog,
|
||||
dataclasses-json,
|
||||
langid,
|
||||
nltk,
|
||||
numpy,
|
||||
pandas,
|
||||
psutil,
|
||||
py3langid,
|
||||
pytestCheckHook,
|
||||
python-dateutil,
|
||||
scipy,
|
||||
toml,
|
||||
@ -23,32 +23,38 @@ let
|
||||
name = "nltk-test-data";
|
||||
paths = [
|
||||
nltk-data.punkt
|
||||
nltk-data.punkt_tab
|
||||
nltk-data.stopwords
|
||||
];
|
||||
};
|
||||
|
||||
version = "0.0.20";
|
||||
tag = "v${version}";
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "type-infer";
|
||||
version = "0.0.20";
|
||||
format = "pyproject";
|
||||
inherit version;
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
# using PyPI because the repo does not have tags or release branches
|
||||
src = fetchPypi {
|
||||
pname = "type_infer";
|
||||
inherit version;
|
||||
hash = "sha256-F+gfA7ofrbMEE5SrVt9H3s2mZKQLyr6roNUmL4EMJbI=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mindsdb";
|
||||
repo = "type_infer";
|
||||
inherit tag;
|
||||
hash = "sha256-2Y+NPwUnQMj0oXoCMfUOG40lqduy9GTcqxfyuFDOkHc=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [ "psutil" ];
|
||||
pythonRelaxDeps = [
|
||||
"psutil"
|
||||
"py3langid"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
colorlog
|
||||
dataclasses-json
|
||||
langid
|
||||
nltk
|
||||
numpy
|
||||
pandas
|
||||
@ -59,8 +65,14 @@ buildPythonPackage rec {
|
||||
toml
|
||||
];
|
||||
|
||||
# PyPI package does not include tests
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# test hangs
|
||||
"test_1_stack_overflow_survey"
|
||||
];
|
||||
|
||||
# Package import requires NLTK data to be downloaded
|
||||
# It is the only way to set NLTK_DATA environment variable,
|
||||
@ -69,8 +81,9 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "type_infer" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/mindsdb/type_infer/releases/tag/${tag}";
|
||||
description = "Automated type inference for Machine Learning pipelines";
|
||||
homepage = "https://pypi.org/project/type-infer/";
|
||||
homepage = "https://github.com/mindsdb/type_infer";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ mbalatsko ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user