159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
37 lines
868 B
Nix
37 lines
868 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ofxtools";
|
|
version = "0.9.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
# PyPI distribution does not include tests
|
|
src = fetchFromGitHub {
|
|
owner = "csingley";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-NsImnD+erhpakQnl1neuHfSKiV6ipNBMPGKMDM0gwWc=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
# override $HOME directory:
|
|
# error: [Errno 13] Permission denied: '/homeless-shelter'
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/csingley/ofxtools";
|
|
description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions";
|
|
mainProgram = "ofxget";
|
|
license = licenses.mit;
|
|
};
|
|
}
|