1{ 2 lib, 3 beancount, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-bdd, 7 pytestCheckHook, 8 regex, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "beancount-plugin-utils"; 14 version = "0.0.4"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "Akuukis"; 19 repo = "beancount_plugin_utils"; 20 rev = "v${version}"; 21 hash = "sha256-oyfL2K/sS4zZ7cq1P36h0dTcW1m5GUyQ9+IyZGfpb2E="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ beancount ]; 27 28 nativeCheckInputs = [ 29 pytest-bdd 30 pytestCheckHook 31 regex 32 ]; 33 34 pytestFlags = [ "--fixtures" ]; 35 36 enabledTestPaths = [ 37 "tests/" 38 ]; 39 40 pythonImportsCheck = [ "beancount" ]; 41 42 meta = with lib; { 43 homepage = "https://github.com/Akuukis/beancount_plugin_utils"; 44 description = "Utils for beancount plugin writers - BeancountError, mark, metaset, etc"; 45 license = licenses.agpl3Only; 46 maintainers = with maintainers; [ alapshin ]; 47 }; 48}