biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / seqeval / default.nix
bloba8a06ed89ab242a73604d788fe20ccf3b6cbdf60
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numpy,
6   scikit-learn,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "seqeval";
12   version = "1.2.2";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "chakki-works";
17     repo = "seqeval";
18     rev = "v${version}";
19     sha256 = "0qv05gn54kc4wpmwnflmfqw4gwwb8lxqhkiihl0pvl7s2i7qzx2j";
20   };
22   postPatch = ''
23     substituteInPlace setup.py \
24       --replace "use_scm_version=True," "version='${version}'," \
25       --replace "setup_requires=['setuptools_scm']," "setup_requires=[],"
26   '';
28   propagatedBuildInputs = [
29     numpy
30     scikit-learn
31   ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   disabledTests = [
36     # tests call perl script and get stuck in there
37     "test_statistical_tests"
38     "test_by_ground_truth"
39   ];
41   meta = with lib; {
42     description = "Python framework for sequence labeling evaluation";
43     homepage = "https://github.com/chakki-works/seqeval";
44     license = licenses.mit;
45     maintainers = [ ];
46   };