2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nose
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ofxtools";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.9.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# PyPI distribution does not include tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "csingley";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-NsImnD+erhpakQnl1neuHfSKiV6ipNBMPGKMDM0gwWc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ nose ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# override $HOME directory:
|
|
|
|
# error: [Errno 13] Permission denied: '/homeless-shelter'
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$TMPDIR nosetests tests/*.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/csingley/ofxtools";
|
|
|
|
description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|