mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 12:00:20 +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>
51 lines
922 B
Nix
51 lines
922 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# build time
|
|
pdm-backend,
|
|
|
|
# runtime
|
|
packaging,
|
|
platformdirs,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
let
|
|
pname = "findpython";
|
|
version = "0.7.1";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-nynmo9q9t18rOclJdywO0m6rFTCABmafNHjNqw2GfHg=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [
|
|
packaging
|
|
platformdirs
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "findpython" ];
|
|
|
|
meta = {
|
|
description = "Utility to find python versions on your system";
|
|
mainProgram = "findpython";
|
|
homepage = "https://github.com/frostming/findpython";
|
|
changelog = "https://github.com/frostming/findpython/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|