nixpkgs/pkgs/development/python-modules/seqeval/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
1,005 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
scikit-learn,
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
scikit-learn
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# tests call perl script and get stuck in there
"test_statistical_tests"
"test_by_ground_truth"
];
meta = {
description = "Python framework for sequence labeling evaluation";
homepage = "https://github.com/chakki-works/seqeval";
license = lib.licenses.mit;
maintainers = [ ];
};
}