summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/lib50/default.nix
blob: c3b4c55ef63e16db2e468f2e0d94e81c5fc9f884 (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
53
54
55
56
57
58
59
60
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  attrs,
  pexpect,
  pyyaml,
  requests,
  termcolor,
  jellyfish,
  cryptography,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "lib50";
  version = "3.1.4";
  pyproject = true;

  # latest GitHub release is several years old. Pypi is up to date.
  src = fetchPypi {
    pname = "lib50";
    inherit version;
    hash = "sha256-/fuiizWAvM1L+shuEnYo0pXwWsLAjDEYUNfb56d/8Y0=";
  };

  build-system = [ setuptools ];

  dependencies = [
    attrs
    pexpect
    pyyaml
    requests
    termcolor
    jellyfish
    cryptography
  ];

  pythonRelaxDeps = [
    "attrs"
    "pyyaml"
    "termcolor"
    "jellyfish"
  ];

  pythonImportsCheck = [ "lib50" ];

  # latest GitHub release is several years old and doesn't include
  # tests and neither does pypi version include tests
  doCheck = false;

  meta = {
    description = "CS50's own internal library used in many of its tools";
    homepage = "https://github.com/cs50/lib50";
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ ethancedwards8 ];
  };
}