nur-packages

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

default.nix (856B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "mqtt-logger";
      9   version = "0.3.6";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "Blake-Haydon";
     14     repo = "mqtt-logger";
     15     rev = "v${version}";
     16     hash = "sha256-AG8L2CD+YN6gWswDtsUtUMOA3xC2ro1f1YKYgc4jwXE=";
     17   };
     18 
     19   pythonRelaxDeps = [ "rich" ];
     20 
     21   build-system = with python3Packages; [ poetry-core ];
     22 
     23   dependencies = with python3Packages; [
     24     commonmark
     25     paho-mqtt
     26     pygments
     27     rich
     28   ];
     29 
     30   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     31 
     32   disabledTests = [ "test_basic_instantiation" ];
     33 
     34   meta = {
     35     description = "Python based MQTT to SQLite3 logger";
     36     homepage = "https://github.com/Blake-Haydon/mqtt-logger";
     37     license = lib.licenses.mit;
     38     maintainers = [ lib.maintainers.sikmir ];
     39   };
     40 }