diff --git a/pkgs/development/python-modules/ofxclient/default.nix b/pkgs/development/python-modules/ofxclient/default.nix new file mode 100644 index 000000000000..c7877675530a --- /dev/null +++ b/pkgs/development/python-modules/ofxclient/default.nix @@ -0,0 +1,29 @@ +{ stdenv, buildPythonPackage, fetchPypi, + ofxhome, ofxparse, beautifulsoup, lxml, keyring +}: + +buildPythonPackage rec { + name = "${pname}-${version}"; + version = "2.0.3"; + pname = "ofxclient"; + + src = fetchPypi { + inherit pname version; + sha256 = "0jdhqsbl34yn3n0x6mwsnl58c25v5lp6vr910c2hk7l74l5y7538"; + }; + + patchPhase = '' + substituteInPlace setup.py --replace '"argparse",' "" + ''; + + # ImportError: No module named tests + doCheck = false; + + propagatedBuildInputs = [ ofxhome ofxparse beautifulsoup lxml keyring ]; + + meta = with stdenv.lib; { + homepage = https://github.com/captin411/ofxclient; + description = "OFX client for dowloading transactions from banks"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4a34b22482e3..75a2c8d077d6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -24776,22 +24776,7 @@ EOF }; }; - ofxclient = buildPythonPackage rec { - name = "ofxclient-1.3.8"; - src = pkgs.fetchurl { - url = "mirror://pypi/o/ofxclient/${name}.tar.gz"; - sha256 = "99ab03bffdb30d9ec98724898f428f8e73129483417d5892799a0f0d2249f233"; - }; - - patchPhase = '' - substituteInPlace setup.py --replace '"argparse",' "" - ''; - - # ImportError: No module named tests - doCheck = false; - - propagatedBuildInputs = with self; [ ofxhome ofxparse beautifulsoup keyring ]; - }; + ofxclient = callPackage ../development/python-modules/ofxclient {}; ofxhome = buildPythonPackage rec { name = "ofxhome-0.3.1";