at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 scikit-learn, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "seqeval"; 12 version = "1.2.2"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "chakki-works"; 17 repo = "seqeval"; 18 rev = "v${version}"; 19 sha256 = "0qv05gn54kc4wpmwnflmfqw4gwwb8lxqhkiihl0pvl7s2i7qzx2j"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace "use_scm_version=True," "version='${version}'," \ 25 --replace "setup_requires=['setuptools_scm']," "setup_requires=[]," 26 ''; 27 28 propagatedBuildInputs = [ 29 numpy 30 scikit-learn 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTests = [ 36 # tests call perl script and get stuck in there 37 "test_statistical_tests" 38 "test_by_ground_truth" 39 ]; 40 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 }; 47}