Files
nixpkgs/pkgs/development/python-modules/findpython/default.nix

50 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build time
pdm-backend,
# runtime
packaging,
platformdirs,
# tests
pytestCheckHook,
}:
let
pname = "findpython";
version = "0.8.0";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-U7MiZIdN+lmQvQnXF4GThtjbMUnYn+IPiP4QeN4oa64=";
};
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 ];
};
}