about summary refs log tree commit diff
path: root/pkgs/development/python-modules/autopep8
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2017-10-29 14:18:17 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-10-29 22:35:16 +0100
commit41b89d15779c74e9a705841c0bb54f375575ca27 (patch)
tree03df16e046c9aca83e47816c2f98e0c38d18696e /pkgs/development/python-modules/autopep8
parentadac3e43fd271dbb9c50cd2f9d42588b5b93e9bb (diff)
downloadnixlib-41b89d15779c74e9a705841c0bb54f375575ca27.tar
nixlib-41b89d15779c74e9a705841c0bb54f375575ca27.tar.gz
nixlib-41b89d15779c74e9a705841c0bb54f375575ca27.tar.bz2
nixlib-41b89d15779c74e9a705841c0bb54f375575ca27.tar.lz
nixlib-41b89d15779c74e9a705841c0bb54f375575ca27.tar.xz
nixlib-41b89d15779c74e9a705841c0bb54f375575ca27.tar.zst
nixlib-41b89d15779c74e9a705841c0bb54f375575ca27.zip
pythonPackages.autopep8: 1.0.4 -> 1.3.3
The pep8 package is renamed to pycodestyle and autopep8 references the
new name.

(Also, fetchurl -> fetchPypi.)
Diffstat (limited to 'pkgs/development/python-modules/autopep8')
-rw-r--r--pkgs/development/python-modules/autopep8/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/autopep8/default.nix b/pkgs/development/python-modules/autopep8/default.nix
index 6dc091624c50..06ad939cfa8b 100644
--- a/pkgs/development/python-modules/autopep8/default.nix
+++ b/pkgs/development/python-modules/autopep8/default.nix
@@ -1,14 +1,16 @@
-{ stdenv, fetchurl, buildPythonPackage, pep8 }:
+{ stdenv, fetchPypi, buildPythonPackage, pycodestyle }:
 
 buildPythonPackage rec {
-  name = "autopep8-1.0.4";
+  pname = "autopep8";
+  version = "1.3.3";
+  name = "${pname}-${version}";
 
-  src = fetchurl {
-    url = "mirror://pypi/a/autopep8/${name}.tar.gz";
-    sha256 = "17lydqm8y9a5qadp6iifxrb5mb0g9fr1vxn5qy1fjpyhazxaw8n1";
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0c1gl648g2xnz3j0rsp71ld4i32zlglmqjvqf4q8r08jp3zpny7z";
   };
 
-  propagatedBuildInputs = [ pep8 ];
+  propagatedBuildInputs = [ pycodestyle ];
 
   # One test fails:
   # FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests)