nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 classify-imports, 5 fetchFromGitHub, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "reorder-python-imports"; 12 version = "3.16.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "asottile"; 17 repo = "reorder_python_imports"; 18 tag = "v${version}"; 19 hash = "sha256-fncrrmksYS+8pz9qVucf4ktxxVvnrKEzIeM5kPrh0PQ="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ classify-imports ]; 25 26 pythonImportsCheck = [ "reorder_python_imports" ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 # prints an explanation about PYTHONPATH first 31 # and therefore fails the assertion 32 disabledTests = [ "test_success_messages_are_printed_on_stderr" ]; 33 34 meta = { 35 description = "Tool for automatically reordering python imports"; 36 homepage = "https://github.com/asottile/reorder_python_imports"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ gador ]; 39 mainProgram = "reorder-python-imports"; 40 }; 41}