diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 920772d47333..095498b73dc3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10993,15 +10993,20 @@ in { }; enum34 = if pythonAtLeast "3.4" then null else buildPythonPackage rec { - name = "enum34-${version}"; - version = "1.0.4"; + pname = "enum34"; + version = "1.1.6"; + name = "${pname}-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/e/enum34/${name}.tar.gz"; - sha256 = "0iz4jjdvdgvfllnpmd92qxj5fnfxqpgmjpvpik0jjim3lqk9zhfk"; + src = fetchPypi { + inherit pname version; + sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"; }; buildInputs = optional isPy26 self.ordereddict; + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; + meta = { homepage = https://pypi.python.org/pypi/enum34;