evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / reorder-python-imports / default.nix
blob06201690ea5eef59474390e9b446e46c0bcc77eb
2   lib,
3   buildPythonPackage,
4   classify-imports,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "reorder-python-imports";
13   version = "3.13.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "asottile";
20     repo = "reorder_python_imports";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-N0hWrrUeojlUDZx2Azs/y2kCaknQ62hHdp0J2ZXPElY=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [ classify-imports ];
29   pythonImportsCheck = [ "reorder_python_imports" ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   # prints an explanation about PYTHONPATH first
34   # and therefore fails the assertion
35   disabledTests = [ "test_success_messages_are_printed_on_stderr" ];
37   meta = with lib; {
38     description = "Tool for automatically reordering python imports";
39     homepage = "https://github.com/asottile/reorder_python_imports";
40     license = licenses.mit;
41     maintainers = with maintainers; [ gador ];
42     mainProgram = "reorder-python-imports";
43   };