aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs/riotkit-do/default.nix
blob: 3ddb1abdbab68dbf9b28f6f401fa87bf6c91e8f6 (plain) (blame)
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
{ python3Packages }:
let
  tabulate = python3Packages.buildPythonPackage rec {
    version = "0.8.7";
    pname = "tabulate";

    src = python3Packages.fetchPypi {
      inherit pname version;
      sha256 = "sha256-2ycjog0EvNqFIhZcc+6nwwDtp04M6FLZAi4BWdeJUAc=";
    };

    checkInputs = with python3Packages; [ nose ];

    doCheck = false;
  };

  python-dotenv = python3Packages.buildPythonPackage rec {
    pname = "python-dotenv";
    version = "0.13.0";

    src = python3Packages.fetchPypi {
      inherit pname version;
      sha256 = "sha256-O5kJvJaw7cawFYbh7tBecRdO9OBMcdpXhjcM6+pTrXQ=";
    };

    propagatedBuildInputs = with python3Packages; [ click ];

    checkInputs = with python3Packages; [
      ipython
      mock
      pytestCheckHook
      sh
    ];

    disabledTests = [
      "cli"
    ];

    pythonImportsCheck = [ "dotenv" ];
  };
in
python3Packages.buildPythonApplication rec {
  pname = "rkd";
  version = "2.4.0";
  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "sha256-WC0FmUYGkV9PFvRtiFW6w6RtP+9Zf6kizl8jGiRb4HQ=";
  };

  propagatedBuildInputs = with python3Packages; [
    pbr
    jinja2
    pyyaml
    tabulate
    psutil
    pytest
    python-dotenv
    jsonschema
  ];
}