Skip to content

Commit 2011959

Browse files
check50: init at 3.3.11
Signed-off-by: Ethan Carter Edwards <[email protected]>
1 parent f723584 commit 2011959

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
lib,
3+
python3Packages,
4+
fetchFromGitHub,
5+
versionCheckHook,
6+
}:
7+
8+
python3Packages.buildPythonApplication rec {
9+
pname = "check50";
10+
version = "3.3.11";
11+
pyproject = true;
12+
13+
src = fetchFromGitHub {
14+
owner = "cs50";
15+
repo = "check50";
16+
tag = "v${version}";
17+
hash = "sha256-+qyEMzAJG/fyIqj+0mk0HTxTlQk6sHZhvmfd9Hgj/aw=";
18+
};
19+
20+
build-system = [
21+
python3Packages.setuptools
22+
];
23+
24+
dependencies = with python3Packages; [
25+
attrs
26+
beautifulsoup4
27+
jinja2
28+
lib50
29+
packaging
30+
pexpect
31+
pyyaml
32+
requests
33+
setuptools # required for import pkg_resources
34+
termcolor
35+
];
36+
37+
pythonImportsCheck = [ "check50" ];
38+
39+
nativeCheckInputs = [ versionCheckHook ];
40+
versionCheckProgramArg = "--version";
41+
42+
# no python tests
43+
44+
meta = {
45+
description = "Testing tool for checking student CS50 code";
46+
homepage = "https://cs50.readthedocs.io/projects/check50/en/latest/";
47+
downloadPage = "https://github.com/cs50/check50";
48+
changelog = "https://github.com/cs50/check50/releases/tag/v${version}";
49+
license = lib.licenses.gpl3Only;
50+
platforms = lib.platforms.unix;
51+
maintainers = with lib.maintainers; [ ethancedwards8 ];
52+
mainProgram = "check50";
53+
};
54+
}

0 commit comments

Comments
 (0)