nur-packages

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

package.nix (1110B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication rec {
      8   pname = "amqtt";
      9   version = "0.11.1";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "Yakifo";
     14     repo = "amqtt";
     15     tag = "v${version}";
     16     hash = "sha256-l/YbfrjJsBA5a/IHH2p/B3irZF/z2xzNYxXOMOieV04=";
     17   };
     18 
     19   postPatch = ''
     20     substituteInPlace pyproject.toml \
     21       --replace-fail ', "uv-dynamic-versioning"' ""
     22   '';
     23 
     24   build-system = with python3Packages; [
     25     hatchling
     26     hatch-vcs
     27   ];
     28 
     29   dependencies = with python3Packages; [
     30     passlib
     31     psutil
     32     pyyaml
     33     transitions
     34     typer
     35     websockets
     36   ];
     37 
     38   pythonRelaxDeps = true;
     39 
     40   doCheck = false;
     41 
     42   nativeCheckInputs = with python3Packages; [
     43     hypothesis
     44     pytest-asyncio
     45     pytest-cov-stub
     46     pytest-logdog
     47     pytestCheckHook
     48   ];
     49 
     50   pythonImportsCheck = [ "amqtt" ];
     51 
     52   __darwinAllowLocalNetworking = true;
     53 
     54   meta = {
     55     description = "MQTT client/broker using Python asyncio";
     56     homepage = "https://github.com/Yakifo/amqtt";
     57     license = lib.licenses.mit;
     58     maintainers = [ lib.maintainers.sikmir ];
     59   };
     60 }