mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-14 19:58:30 +01:00
https://github.com/frostming/findpython/releases/tag/0.7.0 This commit was automatically generated using update-python-libraries.
51 lines
924 B
Nix
51 lines
924 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# build time
|
|
pdm-backend,
|
|
|
|
# runtime
|
|
packaging,
|
|
platformdirs,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
let
|
|
pname = "findpython";
|
|
version = "0.7.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-izFkfHY1J3mjwaCAZpm2jmp73AtcLd2a8qB6DUDGc9w=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [
|
|
packaging
|
|
platformdirs
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "findpython" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|