blob: c4ec41ad8cd3c7687beb9e29130fa33ed82e4a56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ofxtools";
version = "0.9.5";
format = "setuptools";
# PyPI distribution does not include tests
src = fetchFromGitHub {
owner = "csingley";
repo = "ofxtools";
rev = version;
hash = "sha256-NsImnD+erhpakQnl1neuHfSKiV6ipNBMPGKMDM0gwWc=";
};
nativeCheckInputs = [ pytestCheckHook ];
# override $HOME directory:
# error: [Errno 13] Permission denied: '/homeless-shelter'
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = {
homepage = "https://github.com/csingley/ofxtools";
description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions";
mainProgram = "ofxget";
license = lib.licenses.mit;
};
}
|