blob: 9159e9707599e4cd8a47fe317c1b256b249321b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
flask,
packaging,
setuptools,
sqlalchemy,
sqlparse,
termcolor,
wheel,
}:
buildPythonPackage rec {
pname = "cs50";
version = "9.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cs50";
repo = "python-cs50";
tag = "v${version}";
hash = "sha256-g7ws5ikzLt2ciS0QTPTJDRAqePyYPDCYIpJuwnWHJNQ=";
};
build-system = [
setuptools
wheel
];
dependencies = [
flask
packaging
sqlalchemy
sqlparse
termcolor
];
# Tests require docker containers, which are pulled from the internet.
pythonImportsCheck = [ "cs50" ];
meta = {
description = "CS50 Library for Python";
homepage = "https://github.com/cs50/python-cs50/";
changelog = "https://github.com/cs50/python-cs50/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
amadejkastelic
ethancedwards8
];
};
}
|