Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 49 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, scikit-learn 6, perl 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 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # tests call perl script and get stuck in there 39 "test_statistical_tests" 40 "test_by_ground_truth" 41 ]; 42 43 meta = with lib; { 44 description = "A Python framework for sequence labeling evaluation"; 45 homepage = "https://github.com/chakki-works/seqeval"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ hexa ]; 48 }; 49}