My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyupgrade/default.nix

41 lines
791 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, tokenize-rt
}:
buildPythonPackage rec {
pname = "pyupgrade";
version = "2.32.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-fjahaMetgZaH+IzdyaZSkVbasgc0bqQL+1ae0OJriT0=";
};
checkInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
tokenize-rt
];
pythonImportsCheck = [
"pyupgrade"
];
meta = with lib; {
description = "Tool to automatically upgrade syntax for newer versions of the language";
homepage = "https://github.com/asottile/pyupgrade";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}