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

49 lines
936 B
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
2024-05-22 16:01:06 +02:00
# build time
pdm-backend,
2024-05-22 16:01:06 +02:00
# runtime
packaging,
2024-05-22 16:01:06 +02:00
# tests
pytestCheckHook,
}:
let
pname = "findpython";
version = "0.6.3";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-WGPqVVVtiq3Gk0gaFKxPNiSVJxnvwcVZGrsLSp6WXJQ=";
};
2024-05-22 16:01:06 +02:00
nativeBuildInputs = [ pdm-backend ];
2024-05-22 16:01:06 +02:00
propagatedBuildInputs = [ packaging ];
2024-05-22 16:01:06 +02:00
nativeCheckInputs = [ pytestCheckHook ];
2024-05-22 16:01:06 +02:00
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 ];
};
}