Merge pull request #115156 from lovesegfault/pyupgrade-init
This commit is contained in:
commit
97c856bf8e
31
pkgs/development/python-modules/pyupgrade/default.nix
Normal file
31
pkgs/development/python-modules/pyupgrade/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
28
pkgs/development/python-modules/tokenize-rt/default.nix
Normal file
28
pkgs/development/python-modules/tokenize-rt/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user