nixpkgs/pkgs/development/python-modules/trectools/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

65 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
beautifulsoup4,
pandas,
python,
numpy,
scikit-learn,
scipy,
lxml,
matplotlib,
sarge,
unittestCheckHook,
setuptools,
}:
buildPythonPackage {
pname = "trectools";
version = "0.0.50";
format = "setuptools";
src = fetchFromGitHub {
owner = "joaopalotti";
repo = "trectools";
# https://github.com/joaopalotti/trectools/issues/41
rev = "8a896def007e3d657eb29f820ee3de98e2f32691";
hash = "sha256-p8BvLO+rD/l+ATE4+u3I6k25R1RVKlk2dn+RLQZTLDs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "bs4 >= 0.0.0.1" "beautifulsoup4 >= 4.11.1"
'';
build-system = [ setuptools ];
dependencies = [
pandas
numpy
scikit-learn
scipy
lxml
beautifulsoup4
matplotlib
sarge
];
unittestFlagsArray = [
"unittests/"
];
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [ "trectools" ];
meta = {
homepage = "https://github.com/joaopalotti/trectools";
description = "Library for assisting Information Retrieval (IR) practitioners with TREC-like campaigns";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ MoritzBoehme ];
};
}