1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pythonOlder, 6 pytestCheckHook, 7 poetry-core, 8 pytz, 9}: 10 11buildPythonPackage rec { 12 pname = "beanhub-extract"; 13 version = "0.0.7"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchFromGitHub { 19 owner = "LaunchPlatform"; 20 repo = "beanhub-extract"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-Wt8ZCyCaERNXEd0/Q89QWUW/wGFSHAP2RZLhnv5xkgY="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ pytz ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "beanhub_extract" ]; 32 33 meta = { 34 description = "The simple library for extracting all kind of bank account transaction export files, mostly for beanhub-import to ingest and generate transactions"; 35 homepage = "https://github.com/LaunchPlatform/beanhub-extract/"; 36 changelog = "https://github.com/LaunchPlatform/beanhub-extract/releases/tag/${version}"; 37 license = with lib.licenses; [ mit ]; 38 maintainers = with lib.maintainers; [ fangpen ]; 39 }; 40}