cli50: init at 8.0.1

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards 2025-05-25 17:00:25 -04:00
parent 886356e9f8
commit 56041b28d8
No known key found for this signature in database
GPG key ID: D83DC5377393C7E6

View file

@ -0,0 +1,48 @@
{
lib,
python3Packages,
fetchFromGitHub,
versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
pname = "cli50";
version = "8.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "cs50";
repo = "cli50";
tag = "v${version}";
hash = "sha256-0gu31NPql8pFPN4jFbPwYkQmF/rbrAai6EY1ZVfXLew=";
};
build-system = [
python3Packages.setuptools
];
dependencies = with python3Packages; [
inflect
packaging
requests
tzlocal
];
pythonImportsCheck = [ "cli50" ];
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
# no python tests
meta = {
description = "Mount directories into cs50/cli containers";
homepage = "https://cs50.readthedocs.io/cli50/";
downloadPage = "https://github.com/cs50/cli50";
changelog = "https://github.com/cs50/cli50/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ethancedwards8 ];
mainProgram = "cli50";
};
}