about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/updog/default.nix
blob: 7fb8e0bfec37499c31f4ce8e42b4a246f93e0231 (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
{ lib, python3Packages, fetchPypi }:

python3Packages.buildPythonApplication rec {
  pname = "updog";
  version = "1.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "7n/ddjF6eJklo+T79+/zBxSHryebc2W9gxwxsb2BbF4=";
  };

  propagatedBuildInputs = with python3Packages; [
    colorama flask flask-httpauth werkzeug pyopenssl
  ];

  checkPhase = ''
    $out/bin/updog --help > /dev/null
  '';

  meta = with lib; {
    description = "Updog is a replacement for Python's SimpleHTTPServer";
    homepage = "https://github.com/sc0tfree/updog";
    license = licenses.mit;
    maintainers = with maintainers; [ ethancedwards8 ];
  };
}