Commit bcc3b706 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Packages.synthetic-home: init at 5.0.2

Library for managing synthetic home device registry

https://github.com/allenporter/synthetic-home
parent 2610f08d
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  mashumaro,
  pytest-asyncio,
  pytestCheckHook,
  python-slugify,
  pyyaml,
  setuptools,
  syrupy,
}:

buildPythonPackage (finalAttrs: {
  pname = "synthetic-home";
  version = "5.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "allenporter";
    repo = "synthetic-home";
    tag = finalAttrs.version;
    hash = "sha256-u5suLTK7Cdp6IKVxnmiw8p+xQiXV5nfc6QUvpqCyxTk=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    mashumaro
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
    python-slugify
    pyyaml
    syrupy
  ];

  pythonImportsCheck = [ "synthetic_home" ];

  preCheck = ''
    export PATH="$PATH:$out/bin";
  '';

  meta = {
    description = "Library for managing synthetic home device registry";
    homepage = "https://github.com/allenporter/synthetic-home";
    changelog = "https://github.com/allenporter/synthetic-home/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -18904,6 +18904,8 @@ self: super: with self; {
  synology-srm = callPackage ../development/python-modules/synology-srm { };
  synthetic-home = callPackage ../development/python-modules/synthetic-home { };
  syrupy = callPackage ../development/python-modules/syrupy { };
  syslog-rfc5424-formatter = callPackage ../development/python-modules/syslog-rfc5424-formatter { };