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 = "updog";
10 version = "2.0.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "sc0tfree";
15 repo = "updog";
16 tag = "v${version}";
17 hash = "sha256-EFAqxlKrQ9HBMHBdmstY+RZPqK0kWY5Ws6WMFHlMyM0=";
18 };
19
20 build-system = [
21 python3Packages.poetry-core
22 ];
23
24 dependencies = with python3Packages; [
25 colorama
26 flask
27 flask-cors
28 flask-httpauth
29 pyopenssl
30 werkzeug
31 ];
32
33 pythonRelaxDeps = [
34 "pyopenssl"
35 "flask-cors"
36 ];
37
38 nativeCheckInputs = [ versionCheckHook ];
39
40 # no python tests
41
42 meta = {
43 description = "Replacement for Python's SimpleHTTPServer";
44 mainProgram = "updog";
45 homepage = "https://github.com/sc0tfree/updog";
46 changelog = "https://github.com/sc0tfree/updog/releases/tag/v${version}";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ ethancedwards8 ];
49 };
50}