mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-16 04:50:25 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
55 lines
1.2 KiB
Nix
55 lines
1.2 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;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
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 ];
|
|
};
|
|
}
|