diff --git a/pkgs/development/python-modules/ofxparse/default.nix b/pkgs/development/python-modules/ofxparse/default.nix new file mode 100644 index 000000000000..6308921aeab1 --- /dev/null +++ b/pkgs/development/python-modules/ofxparse/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, six +, beautifulsoup4 +}: + +buildPythonPackage rec { + pname = "ofxparse"; + version = "0.14"; + + src = fetchPypi { + inherit pname version; + sha256 = "d8c486126a94d912442d040121db44fbc4a646ea70fa935df33b5b4dbfbbe42a"; + }; + + propagatedBuildInputs = [ six beautifulsoup4 ]; + + meta = with stdenv.lib; { + homepage = "http://sites.google.com/site/ofxparse"; + description = "Tools for working with the OFX (Open Financial Exchange) file format"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 871dc8e44e6a..673465dfccb2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4413,21 +4413,7 @@ in { ofxhome = callPackage ../development/python-modules/ofxhome { }; - ofxparse = buildPythonPackage rec { - name = "ofxparse-0.14"; - src = pkgs.fetchurl { - url = "mirror://pypi/o/ofxparse/${name}.tar.gz"; - sha256 = "d8c486126a94d912442d040121db44fbc4a646ea70fa935df33b5b4dbfbbe42a"; - }; - - propagatedBuildInputs = with self; [ six beautifulsoup4 ]; - - meta = { - homepage = "http://sites.google.com/site/ofxparse"; - description = "Tools for working with the OFX (Open Financial Exchange) file format"; - license = licenses.mit; - }; - }; + ofxparse = callPackage ../development/python-modules/ofxparse { }; ofxtools = buildPythonPackage rec { name = "ofxtools-0.3.8";