checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
48 lines
1,019 B
Nix
48 lines
1,019 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, aspy-refactor-imports
|
|
, classify-imports
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "reorder-python-imports";
|
|
version = "3.9.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asottile";
|
|
repo = "reorder_python_imports";
|
|
rev = "v${version}";
|
|
hash = "sha256-z8giVbW8+k/y9Kg+O2tMle5MoRAar2Gccx2YCtFQvxw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aspy-refactor-imports
|
|
classify-imports
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"reorder_python_imports"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# prints an explanation about PYTHONPATH first
|
|
# and therefore fails the assertion
|
|
disabledTests = [
|
|
"test_success_messages_are_printed_on_stderr"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool for automatically reordering python imports";
|
|
homepage = "https://github.com/asottile/reorder_python_imports";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gador ];
|
|
};
|
|
}
|