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