nur-packages

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

default.nix (747B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "server-thread";
      9   version = "0.2.0";
     10 
     11   src = fetchFromGitHub {
     12     owner = "banesullivan";
     13     repo = "server-thread";
     14     rev = version;
     15     hash = "sha256-/ddMaXIIl9GC9RCZ3JuPL5pX8YQuPCCfjHg3i5ecWDY=";
     16   };
     17 
     18   dependencies = with python3Packages; [
     19     fastapi
     20     scooby
     21     uvicorn
     22     werkzeug
     23   ];
     24 
     25   nativeCheckInputs = with python3Packages; [
     26     flask
     27     requests
     28     pytestCheckHook
     29   ];
     30 
     31   meta = {
     32     description = "Launch a WSGIApplication in a background thread with werkzeug";
     33     homepage = "https://github.com/banesullivan/server-thread";
     34     license = lib.licenses.mit;
     35     maintainers = [ lib.maintainers.sikmir ];
     36   };
     37 }