mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
54 lines
824 B
Nix
54 lines
824 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
|
|
# build time
|
|
, pdm-pep517
|
|
|
|
# runtime
|
|
, packaging
|
|
|
|
# tests
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
let
|
|
pname = "findpython";
|
|
version = "0.2.1";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Q5Shy828+NEOo0OeLYCGsuwHRQcJe25tvuGAKMblKwg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pdm-pep517
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"findpython"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A utility to find python versions on your system";
|
|
homepage = "https://github.com/frostming/findpython";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|