My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/findpython/default.nix

53 lines
824 B

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build time
, pdm-pep517
# runtime
, packaging
# tests
, pytestCheckHook
}:
let
pname = "findpython";
version = "0.1.6";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-n9YYXNy5a6pxCTCER++0k7LH8aj1aeEorxTXJrKmnhg=";
};
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 ];
};
}