1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00

Merge pull request #115156 from lovesegfault/pyupgrade-init

This commit is contained in:
Sandro 2021-03-05 03:01:39 +01:00 committed by GitHub
commit 97c856bf8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -0,0 +1,28 @@
{ buildPythonPackage
, lib
, fetchFromGitHub
, isPy27
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tokenize-rt";
version = "4.1.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-9qamHk2IZRmgGNFlYkSRks6mRVNlYfetpK/7rsfK9tc=";
};
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A wrapper around the stdlib `tokenize` which roundtrips";
homepage = "https://github.com/asottile/tokenize-rt";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}

View file

@ -29432,6 +29432,8 @@ in
pyload = callPackage ../applications/networking/pyload {};
pyupgrade = with python3Packages; toPythonApplication pyupgrade;
pwntools = with python3Packages; toPythonApplication pwntools;
uae = callPackage ../misc/emulators/uae { };

View file

@ -6646,6 +6646,8 @@ in {
pyupdate = callPackage ../development/python-modules/pyupdate { };
pyupgrade = callPackage ../development/python-modules/pyupgrade { };
pyusb = callPackage ../development/python-modules/pyusb { libusb1 = pkgs.libusb1; };
pyutil = callPackage ../development/python-modules/pyutil { };
@ -7982,6 +7984,8 @@ in {
tokenizers = disabledIf (!isPy3k) (toPythonModule (callPackage ../development/python-modules/tokenizers { }));
tokenize-rt = disabledIf (!isPy3k) (toPythonModule (callPackage ../development/python-modules/tokenize-rt { }));
tokenlib = callPackage ../development/python-modules/tokenlib { };
tokenserver = callPackage ../development/python-modules/tokenserver { };