biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / refurb / default.nix
bloba51f15ce5b8e5aabc13010b13db59571b2e28487
1 { lib
2 , fetchFromGitHub
3 , python3Packages
4 }:
6 python3Packages.buildPythonApplication rec {
7   pname = "refurb";
8   version = "2.0.0";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "dosisod";
13     repo = "refurb";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-6MchaqRKJPmvwiDyhCK4kFyIYl2B+2dGL8H8X2ES+VQ=";
16   };
18   postPatch = ''
19     # remove --cov* options provided to pytest
20     sed -i '/^addopts = "--cov/d' pyproject.toml
21   '';
23   nativeBuildInputs = with python3Packages; [
24     poetry-core
25   ];
27   propagatedBuildInputs = with python3Packages; [
28     mypy
29     mypy-extensions
30     tomli
31     typing-extensions
32   ];
34   nativeCheckInputs = with python3Packages; [
35     attrs
36     click
37     colorama
38     iniconfig
39     mccabe
40     packaging
41     pathspec
42     platformdirs
43     pluggy
44     py
45     pyparsing
46     pytestCheckHook
47   ];
49   disabledTests = [
50     "test_checks" # broken because new mypy release added new checks
51   ];
53   pythonImportsCheck = [
54     "refurb"
55   ];
57   meta = with lib; {
58     description = "A tool for refurbishing and modernizing Python codebases";
59     mainProgram = "refurb";
60     homepage = "https://github.com/dosisod/refurb";
61     license = with licenses; [ gpl3Only ];
62     maintainers = with maintainers; [ knl ];
63   };