nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (914B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "server-thread";
      9   version = "0.3.0";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "banesullivan";
     14     repo = "server-thread";
     15     tag = version;
     16     hash = "sha256-1a2XFPyf3FacMx3WU1hPeiqGP4dAUGlQxsXAUz81muo=";
     17   };
     18 
     19   build-system = with python3Packages; [ setuptools ];
     20 
     21   dependencies = with python3Packages; [
     22     fastapi
     23     scooby
     24     uvicorn
     25     werkzeug
     26   ];
     27 
     28   nativeCheckInputs = with python3Packages; [
     29     flask
     30     requests
     31     pytestCheckHook
     32   ];
     33 
     34   disabledTestPaths = [ "tests/test_server.py" ];
     35 
     36   __darwinAllowLocalNetworking = true;
     37 
     38   meta = {
     39     description = "Launch a WSGIApplication in a background thread with werkzeug";
     40     homepage = "https://github.com/banesullivan/server-thread";
     41     license = lib.licenses.mit;
     42     maintainers = [ lib.maintainers.sikmir ];
     43   };
     44 }