python313Packages.trectools: 0.0.49 -> 0.0.50 (#373708)

This commit is contained in:
Martin Weinelt
2025-01-19 05:37:02 +01:00
committed by GitHub

View File

@@ -12,29 +12,32 @@
lxml, lxml,
matplotlib, matplotlib,
sarge, sarge,
unittestCheckHook,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "trectools"; pname = "trectools";
version = "0.0.49"; version = "0.0.50";
format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "joaopalotti"; owner = "joaopalotti";
repo = pname; repo = "trectools";
# https://github.com/joaopalotti/trectools/issues/41 # https://github.com/joaopalotti/trectools/issues/41
rev = "5c1d56e9cf955f45b5a1780ee6a82744d31e7a79"; rev = "8a896def007e3d657eb29f820ee3de98e2f32691";
hash = "sha256-Lh6sK2rxEdCsOUKHn1jgm+rsn8FK1f2po0UuZfZajBA="; hash = "sha256-p8BvLO+rD/l+ATE4+u3I6k25R1RVKlk2dn+RLQZTLDs=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "bs4 >= 0.0.0.1" "beautifulsoup4 >= 4.11.1" --replace-fail "bs4 >= 0.0.0.1" "beautifulsoup4 >= 4.11.1"
''; '';
propagatedBuildInputs = [ build-system = [ setuptools ];
dependencies = [
pandas pandas
numpy numpy
scikit-learn scikit-learn
@@ -45,17 +48,20 @@ buildPythonPackage rec {
sarge sarge
]; ];
checkPhase = '' unittestFlagsArray = [
cd unittests "unittests/"
${python.interpreter} -m unittest runner ];
'';
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [ "trectools" ]; pythonImportsCheck = [ "trectools" ];
meta = with lib; { meta = {
homepage = "https://github.com/joaopalotti/trectools"; homepage = "https://github.com/joaopalotti/trectools";
description = "Library for assisting Information Retrieval (IR) practitioners with TREC-like campaigns"; description = "Library for assisting Information Retrieval (IR) practitioners with TREC-like campaigns";
license = licenses.bsdOriginal; license = lib.licenses.bsdOriginal;
maintainers = with maintainers; [ MoritzBoehme ]; maintainers = with lib.maintainers; [ MoritzBoehme ];
}; };
} }