nur-packages

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

package.nix (1142B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication (finalAttrs: {
      8   pname = "amqtt";
      9   version = "0.11.3";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "Yakifo";
     14     repo = "amqtt";
     15     tag = "v${finalAttrs.version}";
     16     hash = "sha256-J2BWaUJacsCDa3N9fNohn0l+5Vl4+g8Y8aWetjCfZ/A=";
     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     dacite
     31     passlib
     32     psutil
     33     pyyaml
     34     transitions
     35     typer
     36     websockets
     37   ];
     38 
     39   pythonRelaxDeps = true;
     40 
     41   doCheck = false;
     42 
     43   nativeCheckInputs = with python3Packages; [
     44     hypothesis
     45     pytest-asyncio
     46     pytest-cov-stub
     47     pytest-logdog
     48     pytestCheckHook
     49   ];
     50 
     51   pythonImportsCheck = [ "amqtt" ];
     52 
     53   __darwinAllowLocalNetworking = true;
     54 
     55   meta = {
     56     description = "MQTT client/broker using Python asyncio";
     57     homepage = "https://github.com/Yakifo/amqtt";
     58     license = lib.licenses.mit;
     59     maintainers = [ lib.maintainers.sikmir ];
     60   };
     61 })