Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
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";
|
|
};
|
|
}
|