beanquery: init at 0.1.0

This commit is contained in:
Andrei Lapshin
2024-07-09 21:27:47 +02:00
parent 56d2a40058
commit ea3e2b7b83
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
{
lib,
beancount,
click,
buildPythonPackage,
fetchFromGitHub,
python-dateutil,
pytestCheckHook,
setuptools,
tatsu,
}:
buildPythonPackage rec {
pname = "beanquery";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "beancount";
repo = "beanquery";
rev = "refs/tags/v${version}";
hash = "sha256-1+KTUvnqPceRbzY1OZwOSQdK7f78K9kSwtQfI1SUIa8=";
};
build-system = [ setuptools ];
dependencies = [
beancount
click
python-dateutil
tatsu
];
pythonRelaxDeps = [ "tatsu" ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"beancount"
"beanquery"
];
meta = with lib; {
homepage = "https://github.com/beancount/beanquery";
description = "Beancount Query Language";
longDescription = ''
A customizable light-weight SQL query tool that works on tabular data,
including Beancount.
'';
license = licenses.gpl2Only;
maintainers = with maintainers; [ alapshin ];
mainProgram = "bean-query";
};
}

View File

@@ -16525,6 +16525,8 @@ with pkgs;
bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
beanquery = with python3.pkgs; toPythonApplication beanquery;
bench =
# TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013
(if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then lib.id else haskell.lib.compose.justStaticExecutables)

View File

@@ -1567,6 +1567,8 @@ self: super: with self; {
beanhub-import = callPackage ../development/python-modules/beanhub-import { };
beanquery = callPackage ../development/python-modules/beanquery { };
beanstalkc = callPackage ../development/python-modules/beanstalkc { };
beartype = callPackage ../development/python-modules/beartype { };