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