mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 13:43:50 +00:00
![Guillaume Girol](/assets/img/avatar_default.png)
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
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 = with lib; {
|
|
description = "A Python framework for sequence labeling evaluation";
|
|
homepage = "https://github.com/chakki-works/seqeval";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|