summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyupgrade/default.nix
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-03-04 17:23:13 -0800
committerBernardo Meurer <bernardo@meurer.org>2021-03-04 17:23:13 -0800
commit19423fca6e4e6e14b59f223e54c4052bda962e70 (patch)
treeccac51091e75a02b120336ca887fca0a94803ce8 /pkgs/development/python-modules/pyupgrade/default.nix
parentdc517ce7fdf2e8cc86d312069d5e01043d514079 (diff)
downloadnixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.tar
nixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.tar.gz
nixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.tar.bz2
nixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.tar.lz
nixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.tar.xz
nixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.tar.zst
nixpkgs-19423fca6e4e6e14b59f223e54c4052bda962e70.zip
pyupgrade: init at 2.10.0
Diffstat (limited to 'pkgs/development/python-modules/pyupgrade/default.nix')
-rw-r--r--pkgs/development/python-modules/pyupgrade/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyupgrade/default.nix b/pkgs/development/python-modules/pyupgrade/default.nix
new file mode 100644
index 00000000000..95aa57491ca
--- /dev/null
+++ b/pkgs/development/python-modules/pyupgrade/default.nix
@@ -0,0 +1,31 @@
+{ buildPythonPackage
+, fetchFromGitHub
+, isPy27
+, lib
+, pytestCheckHook
+, tokenize-rt
+}:
+
+buildPythonPackage rec {
+  pname = "pyupgrade";
+  version = "2.10.0";
+  disabled = isPy27;
+
+  src = fetchFromGitHub {
+    owner = "asottile";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-XYeqyyfwtS7dHLxeVvmcifW6UCOlnSMxqF1vxezBjT8=";
+  };
+
+  checkInputs =  [ pytestCheckHook ];
+
+  propagatedBuildInputs = [ tokenize-rt ];
+
+  meta = with lib; {
+    description = "A tool to automatically upgrade syntax for newer versions of the language";
+    homepage    = "https://github.com/asottile/pyupgrade";
+    license     = licenses.mit;
+    maintainers = with maintainers; [ lovesegfault ];
+  };
+}