forked from mirrors/nixpkgs
refurb: init at 1.7.0
This commit is contained in:
parent
381c3a564e
commit
7dafcde452
58
pkgs/development/tools/refurb/default.nix
Normal file
58
pkgs/development/tools/refurb/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3Packages
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "refurb";
|
||||
version = "1.7.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dosisod";
|
||||
repo = "refurb";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-JA/kU+2cpNKY2umA3NXwsqbfOMv9t6I7GlMYhiA6GTg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
mypy
|
||||
mypy-extensions
|
||||
tomli
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
attrs
|
||||
click
|
||||
colorama
|
||||
iniconfig
|
||||
mccabe
|
||||
packaging
|
||||
pathspec
|
||||
platformdirs
|
||||
pluggy
|
||||
py
|
||||
pyparsing
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/^addopts/d" pyproject.toml
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"refurb"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool for refurbishing and modernizing Python codebases";
|
||||
homepage = "https://github.com/dosisod/refurb";
|
||||
license = with licenses; [ gpl3Only ];
|
||||
maintainers = with maintainers; [ knl ];
|
||||
};
|
||||
}
|
|
@ -16219,6 +16219,8 @@ with pkgs;
|
|||
llvmPackages = llvmPackages_latest;
|
||||
};
|
||||
|
||||
refurb = callPackage ../development/tools/refurb { };
|
||||
|
||||
srandrd = callPackage ../tools/X11/srandrd { };
|
||||
|
||||
srecord = callPackage ../development/tools/misc/srecord { };
|
||||
|
|
Loading…
Reference in a new issue