nur-packages

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

commit 5b9042f92345b600efb561e4110b9287c503d851
parent 04100d519ad887fb9d59db274df7b29c56022e8d
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 25 Feb 2023 00:11:23 +0300

Add tinyflux

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/tinyflux/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -345,6 +345,7 @@ lib.makeScope newScope ( tcvt = callPackage ./misc/tcvt { }; telegabber = callPackage ./misc/telegabber { }; telnetpp = callPackage ./misc/telnetpp { }; + tinyflux = callPackage ./misc/tinyflux { }; tlstunnel = callPackage ./misc/tlstunnel { }; worm = callPackage ./misc/worm { }; wptools = callPackage ./misc/wptools { }; diff --git a/pkgs/misc/tinyflux/default.nix b/pkgs/misc/tinyflux/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "tinyflux"; + version = "0.2.4"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "citrusvanilla"; + repo = "tinyflux"; + rev = "v${version}"; + hash = "sha256-mDbkKTFln0fYJW0DhLxdQu8ubjsjzJtJW9a+AD1NOU8="; + }; + + postPatch = '' + echo ${version} > version.txt + ''; + + propagatedBuildInputs = with python3Packages; [ setuptools ]; + + nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + description = "The tiny time series database"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}