Merge pull request #179731 from dotlambda/banking-0.5.1

banking: 0.4.0 -> 0.5.1
This commit is contained in:
Anderson Torres 2022-07-01 01:15:42 -03:00 committed by GitHub
commit 0097144093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 19 deletions

View File

@ -17,34 +17,17 @@
python3.pkgs.buildPythonApplication rec {
pname = "banking";
version = "0.4.0";
version = "0.5.1";
format = "other";
src = fetchFromGitLab {
owner = "tabos";
repo = "banking";
rev = version;
sha256 = "sha256-VGNCSirQslRfLIFeo375BNlHujoNXm+s55Ty+hB+ZRI=";
sha256 = "sha256-tZlBpDcwQ/aWroP2sFQBZcvmBD26PiY7q/8xFA8GnVc=";
};
patches = [
# Fix build with meson 0.61
# https://gitlab.com/tabos/banking/-/merge_requests/90
(fetchpatch {
url = "https://gitlab.com/tabos/banking/-/commit/c3cc9afc380fe666ae6e331aa8a97659c60397a4.patch";
sha256 = "r9n9l47XU4Tg4U5sfiFdGkbG8QB7O4ol9CB1ya06yOc=";
})
# fix build with libadwaita 1.0.0
(fetchpatch {
url = "https://gitlab.com/tabos/banking/-/commit/27ac4a89ba6047005d43de71a469ef30d1fda8b5.patch";
hash = "sha256-dpDjdYf3gDsyFMTfGes+x27yUxKEnKjLulJxX2encG0=";
})
];
postPatch = ''
substituteInPlace meson_post_install.py \
--replace gtk-update-icon-cache gtk4-update-icon-cache
patchShebangs meson_post_conf.py meson_post_install.py
'';
@ -70,12 +53,15 @@ python3.pkgs.buildPythonApplication rec {
fints
mt-940
pygobject3
pysqlitecipher
schwifty
];
meta = with lib; {
description = "Banking application for small screens";
homepage = "https://tabos.gitlab.io/projects/banking/";
license = licenses.gpl3Plus;
mainProgram = "org.tabos.banking";
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "onetimepad";
version = "1.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1eaade76d8036e1cb79e944b75874bfe5ee4046a571c0724564e1721565c73fd";
};
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "onetimepad" ];
meta = {
description = "A hacky implementation of one-time pad";
homepage = "https://jailuthra.in/onetimepad";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, cryptography
, onetimepad
}:
buildPythonPackage rec {
pname = "pysqlitecipher";
version = "0.22";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "daff63ca2719fbd698aa10f64493c4b31fb67877a8e8dbb8090e9c03a1b1a9e4";
};
propagatedBuildInputs = [
cryptography
onetimepad
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "pysqlitecipher" ];
meta = {
description = "Lightweight and easy to use sqlite wrapper with built-in encryption system";
homepage = "Ghttps://github.com/harshnative/pysqlitecipher";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -6466,6 +6466,8 @@ in {
netmap = callPackage ../development/python-modules/netmap { };
onetimepad = callPackage ../development/python-modules/onetimepad { };
openai = callPackage ../development/python-modules/openai { };
openapi-core = callPackage ../development/python-modules/openapi-core { };
@ -6655,6 +6657,8 @@ in {
pysolcast = callPackage ../development/python-modules/pysolcast { };
pysqlitecipher = callPackage ../development/python-modules/pysqlitecipher { };
pysyncthru = callPackage ../development/python-modules/pysyncthru { };
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };