Skip to content

Commit

Permalink
Update beanquery
Browse files Browse the repository at this point in the history
  • Loading branch information
alapshin committed Dec 4, 2024
1 parent c3e6f49 commit e656f59
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/beanquery/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{
lib,
beancount3,
click,
buildPythonPackage,
fetchFromGitHub,
click,
fetchPypi,
python-dateutil,
pytestCheckHook,
setuptools,
tatsu,
}:
buildPythonPackage rec {
pname = "beanquery";
version = "0.1.dev1-2024-06-30";
version = "0.1.0";
pyproject = true;

src = fetchFromGitHub {
owner = "beancount";
repo = "beanquery";
rev = "7577b6c1b93cfdecd76e9c5f466e0ab96bddd045";
hash = "sha256-xFhlkFlD+VG0n6WfKLjuhm7Cwz3t2V6GxmMXc5TgIPc=";
src = fetchPypi {
inherit pname version;
hash = "sha256-tp4Jm4Qhshm7zDKTr3fjxMyterJb9SD+5IeIZy/79ko=";
};

build-system = [ setuptools ];
Expand All @@ -30,12 +28,16 @@ buildPythonPackage rec {
tatsu
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "find = {}" "find = { exclude = [ \"docs*\" ] }"
'';

pythonRelaxDeps = [ "tatsu" ];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [
"beancount"
"beanquery"
];

Expand Down

0 comments on commit e656f59

Please sign in to comment.