1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pythonOlder, 6 hatchling, 7 pytestCheckHook, 8 iso8601, 9 pytest-lazy-fixture, 10 pytz, 11}: 12 13buildPythonPackage rec { 14 pname = "beanhub-extract"; 15 version = "0.1.6"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "LaunchPlatform"; 22 repo = "beanhub-extract"; 23 tag = version; 24 hash = "sha256-N4LCMZRPbIzVUPDCW3mAVw6WwpuvxiJmMIoyk8VwXS0="; 25 }; 26 27 build-system = [ hatchling ]; 28 29 pythonRelaxDeps = [ "pytz" ]; 30 31 dependencies = [ 32 iso8601 33 pytz 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-lazy-fixture 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "beanhub_extract" ]; 42 43 meta = { 44 description = "Simple library for extracting all kind of bank account transaction export files, mostly for beanhub-import to ingest and generate transactions"; 45 homepage = "https://github.com/LaunchPlatform/beanhub-extract/"; 46 changelog = "https://github.com/LaunchPlatform/beanhub-extract/releases/tag/${src.tag}"; 47 license = with lib.licenses; [ mit ]; 48 maintainers = with lib.maintainers; [ fangpen ]; 49 }; 50}