Merge pull request #193309 from knl/add-pyrefurb

authored by Sandro and committed by GitHub 5de865b3 70e765c8

+60
+58
pkgs/development/tools/refurb/default.nix
···
··· 1 + { lib 2 + , fetchFromGitHub 3 + , python3Packages 4 + }: 5 + 6 + python3Packages.buildPythonApplication rec { 7 + pname = "refurb"; 8 + version = "1.7.0"; 9 + format = "pyproject"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "dosisod"; 13 + repo = "refurb"; 14 + rev = "v${version}"; 15 + hash = "sha256-JA/kU+2cpNKY2umA3NXwsqbfOMv9t6I7GlMYhiA6GTg"; 16 + }; 17 + 18 + nativeBuildInputs = with python3Packages; [ 19 + poetry-core 20 + ]; 21 + 22 + propagatedBuildInputs = with python3Packages; [ 23 + mypy 24 + mypy-extensions 25 + tomli 26 + typing-extensions 27 + ]; 28 + 29 + checkInputs = with python3Packages; [ 30 + attrs 31 + click 32 + colorama 33 + iniconfig 34 + mccabe 35 + packaging 36 + pathspec 37 + platformdirs 38 + pluggy 39 + py 40 + pyparsing 41 + pytestCheckHook 42 + ]; 43 + 44 + postPatch = '' 45 + sed -i "/^addopts/d" pyproject.toml 46 + ''; 47 + 48 + pythonImportsCheck = [ 49 + "refurb" 50 + ]; 51 + 52 + meta = with lib; { 53 + description = "A tool for refurbishing and modernizing Python codebases"; 54 + homepage = "https://github.com/dosisod/refurb"; 55 + license = with licenses; [ gpl3Only ]; 56 + maintainers = with maintainers; [ knl ]; 57 + }; 58 + }
+2
pkgs/top-level/all-packages.nix
··· 16373 llvmPackages = llvmPackages_latest; 16374 }; 16375 16376 srandrd = callPackage ../tools/X11/srandrd { }; 16377 16378 srecord = callPackage ../development/tools/misc/srecord { };
··· 16373 llvmPackages = llvmPackages_latest; 16374 }; 16375 16376 + refurb = callPackage ../development/tools/refurb { }; 16377 + 16378 srandrd = callPackage ../tools/X11/srandrd { }; 16379 16380 srecord = callPackage ../development/tools/misc/srecord { };