Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions pkgs/by-name/pr/pretix-banktool/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
fetchFromGitHub,
}:

python3Packages.buildPythonApplication (finalAttrs: {
let
pythonPackages = python3Packages.overrideScope (
self: super: {
fints = self.fints_4;
}
);
in
pythonPackages.buildPythonApplication (finalAttrs: {
pname = "pretix-banktool";
version = "1.1.0";
pyproject = true;
Expand All @@ -16,9 +23,9 @@ python3Packages.buildPythonApplication (finalAttrs: {
hash = "sha256-x6P+WqrOak5/gmMEmBkHrx6kPsbSOAXbKRbndFG3IJU=";
};

build-system = with python3Packages; [ setuptools ];
build-system = with pythonPackages; [ setuptools ];

dependencies = with python3Packages; [
dependencies = with pythonPackages; [
click
fints
requests
Expand Down
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/fints/4.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
setuptools,
fetchFromGitHub,
bleach,
mt-940,
pretix-banktool,
requests,
sepaxml,
pytestCheckHook,
pytest-mock,
}:

buildPythonPackage rec {
version = "4.2.4";
pname = "fints";
pyproject = true;

src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-fints";
tag = "v${version}";
hash = "sha256-la5vpWBoZ7hZsAyjjCqHpFfOykDVosI/S9amox1dmzY=";
};

pythonRemoveDeps = [ "enum-tools" ];

build-system = [ setuptools ];

dependencies = [
bleach
mt-940
requests
sepaxml
];

__darwinAllowLocalNetworking = true;

pythonImportsCheck = [ "fints" ];

nativeCheckInputs = [
pytestCheckHook
pytest-mock
];

meta = {
homepage = "https://github.com/raphaelm/python-fints/";
description = "Pure-python FinTS (formerly known as HBCI) implementation";
license = lib.licenses.lgpl3Only;
inherit (pretix-banktool.meta) maintainers;
};
}
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/fints/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
setuptools,
fetchFromGitHub,
bleach,
lxml,
mt-940,
requests,
sepaxml,
Expand All @@ -12,15 +13,15 @@
}:

buildPythonPackage rec {
version = "4.2.4";
version = "5.0.0";
pname = "fints";
pyproject = true;

src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-fints";
tag = "v${version}";
hash = "sha256-la5vpWBoZ7hZsAyjjCqHpFfOykDVosI/S9amox1dmzY=";
hash = "sha256-ll2+PtcGQiY5nbQTKVetd2ecDBVSXgzWP4Vzzri1Trs=";
};

pythonRemoveDeps = [ "enum-tools" ];
Expand All @@ -29,6 +30,7 @@ buildPythonPackage rec {

dependencies = [
bleach
lxml
mt-940
requests
sepaxml
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5466,6 +5466,8 @@ self: super: with self; {

fints = callPackage ../development/python-modules/fints { };

fints_4 = callPackage ../development/python-modules/fints/4.nix { };

finvizfinance = callPackage ../development/python-modules/finvizfinance { };

fiona = callPackage ../development/python-modules/fiona { };
Expand Down
Loading