diff options
Diffstat (limited to 'pkgs/development/python-modules/cherrypy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cherrypy/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index cbb8774f55fe..1763ccbce855 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -5,15 +5,21 @@ , backports_functools_lru_cache, requests_toolbelt }: -buildPythonPackage rec { +let + srcInfo = if isPy3k then { + version = "18.0.1"; + sha256 = "3002fc47b982c3df4d08dbe5996b093fd73f85b650ab8df19e8b9b95f5c00520"; + } else { + version = "17.4.1"; + sha256 = "1kl17anzz535jgkn9qcy0c2m0zlafph0iv7ph3bb9mfrs2bgvagv"; + }; +in buildPythonPackage rec { pname = "CherryPy"; - version = "18.0.1"; - - disabled = !isPy3k; + inherit (srcInfo) version; src = fetchPypi { - inherit pname version; - sha256 = "3002fc47b982c3df4d08dbe5996b093fd73f85b650ab8df19e8b9b95f5c00520"; + inherit pname; + inherit (srcInfo) version sha256; }; propagatedBuildInputs = [ cheroot contextlib2 portend routes six zc_lockfile ]; |