mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
45 lines
922 B
Nix
45 lines
922 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
urllib3,
|
|
requests,
|
|
curl,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "uploadserver";
|
|
version = "6.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Densaugeo";
|
|
repo = "uploadserver";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-z0lqVllR+vmdMt95Kv2pGrp0Coc3ZEwgS4xyvnw0geE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
urllib3
|
|
requests
|
|
curl
|
|
];
|
|
|
|
env.VERBOSE = 0;
|
|
env.PROTOCOL = "HTTP";
|
|
enabledTestPaths = [ "test.py" ];
|
|
|
|
pythonImportsCheck = [ "uploadserver" ];
|
|
|
|
meta = {
|
|
description = "Python's http.server extended to include a file upload page";
|
|
homepage = "https://github.com/Densaugeo/uploadserver";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.gigamonster256 ];
|
|
mainProgram = "uploadserver";
|
|
};
|
|
})
|