3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aspy-refactor-imports/default.nix
Florian 4f9ef8f974
python3Packages.aspy-refactor-imports: init at 3.0.1 (#165653)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-27 20:13:55 +02:00

35 lines
726 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aspy-refactor-imports";
version = "3.0.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asottile";
repo = "aspy.refactor_imports";
rev = "v${version}";
sha256 = "MlCM3zNTQZJ1RWrTQG0AN28RUepWINKCeLENykbu2nw=";
};
pythonImportsCheck = [
"aspy.refactor_imports"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Utilities for refactoring imports in python-like syntax.";
homepage = "https://github.com/asottile/reorder_python_imports";
license = licenses.mit;
maintainers = with maintainers; [ gador ];
};
}