diff --git a/pkgs/development/python-modules/web/default.nix b/pkgs/development/python-modules/web/default.nix new file mode 100644 index 000000000000..86c9d435f1e0 --- /dev/null +++ b/pkgs/development/python-modules/web/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +}: + +buildPythonPackage rec { + version = "0.37"; + pname = "web.py"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "748c7e99ad9e36f62ea19f7965eb7dd7860b530e8f563ed60ce3e53e7409a550"; + }; + + meta = with stdenv.lib; { + description = "Makes web apps"; + longDescription = '' + Think about the ideal way to write a web app. + Write the code to make it happen. + ''; + homepage = "http://webpy.org/"; + license = licenses.publicDomain; + maintainers = with maintainers; [ layus ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6d8287257cce..5b91c80b50fe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4113,27 +4113,7 @@ in { wcwidth = callPackage ../development/python-modules/wcwidth { }; - web = buildPythonPackage rec { - version = "0.37"; - name = "web.py-${version}"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/w/web.py/web.py-${version}.tar.gz"; - sha256 = "748c7e99ad9e36f62ea19f7965eb7dd7860b530e8f563ed60ce3e53e7409a550"; - }; - - meta = { - description = "Makes web apps"; - longDescription = '' - Think about the ideal way to write a web app. - Write the code to make it happen. - ''; - homepage = "http://webpy.org/"; - license = licenses.publicDomain; - maintainers = with maintainers; [ layus ]; - }; - }; + web = callPackage ../development/python-modules/web { }; webob = buildPythonPackage rec { pname = "WebOb";