mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
updog: modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
parent
ade1ccc22a
commit
d9e4dd24f2
1 changed files with 22 additions and 12 deletions
|
@ -1,19 +1,27 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
python3Packages,
|
python3Packages,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "updog";
|
pname = "updog";
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "sc0tfree";
|
||||||
sha256 = "7n/ddjF6eJklo+T79+/zBxSHryebc2W9gxwxsb2BbF4=";
|
repo = "updog";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-e6J4Cbe9ZRb+nDMi6uxwP2ZggbNDyKysQC+IcKCDtIw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
build-system = [
|
||||||
|
python3Packages.setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = with python3Packages; [
|
||||||
colorama
|
colorama
|
||||||
flask
|
flask
|
||||||
flask-httpauth
|
flask-httpauth
|
||||||
|
@ -21,15 +29,17 @@ python3Packages.buildPythonApplication rec {
|
||||||
pyopenssl
|
pyopenssl
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = [ versionCheckHook ];
|
||||||
$out/bin/updog --help > /dev/null
|
versionCheckProgramArg = "--version";
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
# no python tests
|
||||||
description = "Updog is a replacement for Python's SimpleHTTPServer";
|
|
||||||
|
meta = {
|
||||||
|
description = "Replacement for Python's SimpleHTTPServer";
|
||||||
mainProgram = "updog";
|
mainProgram = "updog";
|
||||||
homepage = "https://github.com/sc0tfree/updog";
|
homepage = "https://github.com/sc0tfree/updog";
|
||||||
license = licenses.mit;
|
changelog = "https://github.com/sc0tfree/updog/releases/tag/${version}";
|
||||||
maintainers = with maintainers; [ ethancedwards8 ];
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue