ledger-autosync: unstable-2021-04-01 -> 1.0.3
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
37635624cf
commit
fe090d4c13
|
@ -9,22 +9,19 @@
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "ledger-autosync";
|
pname = "ledger-autosync";
|
||||||
version = "unstable-2021-04-01";
|
version = "1.0.3";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
# no tests included in PyPI tarball
|
# no tests included in PyPI tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "egh";
|
owner = "egh";
|
||||||
repo = "ledger-autosync";
|
repo = "ledger-autosync";
|
||||||
rev = "0b674c57c833f75b1a36d8caf78e1567c8e2180c";
|
rev = "v${version}";
|
||||||
sha256 = "0q404gr85caib5hg83cnmgx4684l72w9slxyxrwsiwhlf7gm443q";
|
sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = with python3Packages; [
|
||||||
# ledger-autosync specifies an URL for its ofxparse
|
poetry-core
|
||||||
# dependency. This patch removes the URL to only use the
|
|
||||||
# `ofxparse` name. This works because nixpkgs' version of ofxparse
|
|
||||||
# is more recent than the latest release.
|
|
||||||
./fix-ofxparse-dependency.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
@ -52,10 +49,14 @@ python3Packages.buildPythonApplication rec {
|
||||||
|
|
||||||
# Checks require ledger as a python package,
|
# Checks require ledger as a python package,
|
||||||
# ledger does not support python3 while ledger-autosync requires it.
|
# ledger does not support python3 while ledger-autosync requires it.
|
||||||
checkInputs = with python3Packages; [ ledger hledger nose mock ];
|
checkInputs = with python3Packages; [ ledger hledger nose mock pytestCheckHook ];
|
||||||
checkPhase = ''
|
|
||||||
nosetests -a generic -a ledger -a hledger
|
# Disable some non-passing tests:
|
||||||
'';
|
# https://github.com/egh/ledger-autosync/issues/127
|
||||||
|
disabledTests = [
|
||||||
|
"test_payee_match"
|
||||||
|
"test_args_only"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/egh/ledger-autosync";
|
homepage = "https://github.com/egh/ledger-autosync";
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index eda6db5..ed6b90b 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -38,7 +38,7 @@ setup(
|
|
||||||
install_requires=[
|
|
||||||
'setuptools>=26',
|
|
||||||
'ofxclient',
|
|
||||||
- "ofxparse @ https://github.com/jseutter/ofxparse/tarball/3236cfd96434feb6bc79a8b66f3400f18e2ad3c4"
|
|
||||||
+ 'ofxparse'
|
|
||||||
],
|
|
||||||
|
|
||||||
extras_require={
|
|
Loading…
Reference in a new issue