2018-10-29 17:18:50 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2020-04-11 19:06:39 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, nose
|
2018-10-29 17:18:50 +00:00
|
|
|
, python
|
2020-04-11 19:06:39 +01:00
|
|
|
, pythonOlder
|
2018-10-29 17:18:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ofxtools";
|
2019-10-24 07:47:40 +01:00
|
|
|
version = "0.8.20";
|
2018-10-29 17:18:50 +00:00
|
|
|
|
2020-04-11 19:06:39 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
# PyPI distribution does not include tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "csingley";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1s3fhhmj1acnmqglh39003db0bi451m4hcrkcpyrkqf5m32lslz8";
|
2018-10-29 17:18:50 +00:00
|
|
|
};
|
|
|
|
|
2020-04-11 19:06:39 +01:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
# override $HOME directory:
|
|
|
|
# error: [Errno 13] Permission denied: '/homeless-shelter'
|
2018-10-29 17:18:50 +00:00
|
|
|
checkPhase = ''
|
2020-04-11 19:06:39 +01:00
|
|
|
HOME=$TMPDIR nosetests tests/*.py
|
2018-10-29 17:18:50 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/csingley/ofxtools";
|
|
|
|
description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|