nixpkgs/pkgs/development/python-modules/pythonfinder/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

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cached-property,
click,
fetchFromGitHub,
packaging,
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pythonfinder";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sarugaku";
repo = "pythonfinder";
tag = version;
hash = "sha256-Qym/t+IejBMFHvBfIm+G5+J3GBC9O3RFrwSqHLuxwcg=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ cached-property ];
optional-dependencies = {
cli = [ click ];
};
nativeCheckInputs = [
pytest-cov-stub
pytest-timeout
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "pythonfinder" ];
meta = {
description = "Cross platform search tool for finding Python";
mainProgram = "pyfinder";
homepage = "https://github.com/sarugaku/pythonfinder";
changelog = "https://github.com/sarugaku/pythonfinder/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cpcloud ];
};
}