python3Packages.seqeval: init at 1.2.2

This commit is contained in:
Martin Weinelt 2021-04-23 00:59:29 +02:00
parent c4727f753f
commit 2cbebb3742
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, scikitlearn
, perl
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "seqeval";
version = "1.2.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "chakki-works";
repo = "seqeval";
rev = "v${version}";
sha256 = "0qv05gn54kc4wpmwnflmfqw4gwwb8lxqhkiihl0pvl7s2i7qzx2j";
};
postPatch = ''
substituteInPlace setup.py \
--replace "use_scm_version=True," "version='${version}'," \
--replace "setup_requires=['setuptools_scm']," "setup_requires=[],"
'';
propagatedBuildInputs = [
numpy
scikitlearn
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# tests call perl script and get stuck in there
"test_statistical_tests"
"test_by_ground_truth"
];
meta = with lib; {
description = "A Python framework for sequence labeling evaluation";
homepage = "https://github.com/chakki-works/seqeval";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -7745,6 +7745,8 @@ in {
seqdiag = callPackage ../development/python-modules/seqdiag { };
seqeval = callPackage ../development/python-modules/seqeval { };
sequoia = disabledIf (isPyPy || !isPy3k) (toPythonModule (pkgs.sequoia.override {
pythonPackages = self;
pythonSupport = true;