depot/third_party/nixpkgs/pkgs/development/python-modules/findpython/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

54 lines
913 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build time
, pdm-pep517
# runtime
, packaging
# tests
, pytestCheckHook
}:
let
pname = "findpython";
version = "0.2.4";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-YfF2jN2EPcL4pFlxJyxYwlZBpQsZ2pEwLiSS4ypmc2I=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
packaging
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"findpython"
];
meta = with lib; {
description = "A utility to find python versions on your system";
homepage = "https://github.com/frostming/findpython";
changelog = "https://github.com/frostming/findpython/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}