Commit 9c87c36a authored by Caleb Norton's avatar Caleb Norton
Browse files

python3Packages.uploadserver: init at 6.0.1

parent 26b4ea43
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  urllib3,
  requests,
  curl,
}:
buildPythonPackage (finalAttrs: {
  pname = "uploadserver";
  version = "6.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Densaugeo";
    repo = "uploadserver";
    tag = finalAttrs.version;
    hash = "sha256-3obQZF9dY9rRVpeU4362o3ZC95hQtXFhxSNryxPAoLM=";
  };

  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";
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -20515,6 +20515,8 @@ self: super: with self; {
  uplink-protobuf = callPackage ../development/python-modules/uplink-protobuf { };
  uploadserver = callPackage ../development/python-modules/uploadserver { };
  upnpy = callPackage ../development/python-modules/upnpy { };
  uproot = callPackage ../development/python-modules/uproot { };