nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5 versionCheckHook,
6}:
7
8python3Packages.buildPythonApplication rec {
9 pname = "cli50";
10 version = "8.0.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "cs50";
15 repo = "cli50";
16 tag = "v${version}";
17 hash = "sha256-0gu31NPql8pFPN4jFbPwYkQmF/rbrAai6EY1ZVfXLew=";
18 };
19
20 build-system = [
21 python3Packages.setuptools
22 ];
23
24 dependencies = with python3Packages; [
25 inflect
26 packaging
27 requests
28 tzlocal
29 ];
30
31 pythonImportsCheck = [ "cli50" ];
32
33 nativeCheckInputs = [ versionCheckHook ];
34
35 # no python tests
36
37 meta = {
38 description = "Mount directories into cs50/cli containers";
39 homepage = "https://cs50.readthedocs.io/cli50/";
40 downloadPage = "https://github.com/cs50/cli50";
41 changelog = "https://github.com/cs50/cli50/releases/tag/v${version}";
42 license = lib.licenses.gpl3Only;
43 platforms = lib.platforms.unix;
44 maintainers = with lib.maintainers; [ ethancedwards8 ];
45 mainProgram = "cli50";
46 };
47}