From e493c8406cc514801941ed0f116562e2989c1d7b Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Sat, 1 Oct 2016 16:52:28 +0200 Subject: [PATCH] Revert "pep8: replaced by pycodestyle (package was renamed)" This reverts commit 0986a17edada11da1a910e2a015a4c57ad1279f2. ---- pycodestyle and pep8 are not api compatible so the alias adds little value. Packages that are compatible with pycodestyle should be updated to use the new version on a per package basis. --- pkgs/top-level/python-packages.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 121583f6a04..f3950406f64 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10537,8 +10537,6 @@ in modules // { }; }; - pep8 = self.pycodestyle; - flake8 = buildPythonPackage rec { name = "flake8-${version}"; version = "3.0.4"; @@ -17601,6 +17599,23 @@ in modules // { }; }; + pep8 = buildPythonPackage rec { + name = "pep8-${version}"; + version = "1.7.0"; + + src = pkgs.fetchurl { + url = "mirror://pypi/p/pep8/${name}.tar.gz"; + sha256 = "a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900"; + }; + + meta = { + homepage = "http://pep8.readthedocs.org/"; + description = "Python style guide checker"; + license = licenses.mit; + maintainers = with maintainers; [ garbas ]; + }; + }; + pep257 = buildPythonPackage rec { name = "pep257-${version}"; version = "0.3.2";