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 pytestFlagsArray = [ "--fixtures tests/" ]; 35 36 pythonImportsCheck = [ "beancount" ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/Akuukis/beancount_plugin_utils"; 40 description = "Utils for beancount plugin writers - BeancountError, mark, metaset, etc"; 41 license = licenses.agpl3Only; 42 maintainers = with maintainers; [ alapshin ]; 43 }; 44}