Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 814 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5, python 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "ofxtools"; 11 version = "0.8.20"; 12 13 disabled = pythonOlder "3.7"; 14 15 # PyPI distribution does not include tests 16 src = fetchFromGitHub { 17 owner = "csingley"; 18 repo = pname; 19 rev = version; 20 sha256 = "1s3fhhmj1acnmqglh39003db0bi451m4hcrkcpyrkqf5m32lslz8"; 21 }; 22 23 checkInputs = [ nose ]; 24 # override $HOME directory: 25 # error: [Errno 13] Permission denied: '/homeless-shelter' 26 checkPhase = '' 27 HOME=$TMPDIR nosetests tests/*.py 28 ''; 29 30 meta = with stdenv.lib; { 31 homepage = "https://github.com/csingley/ofxtools"; 32 description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions"; 33 license = licenses.mit; 34 }; 35}