14 buildPythonPackage rec {
17 format = "setuptools";
19 # upstream technically support 3.7 through 3.9, but 3.10 happens to work while 3.11 breaks with an import error
20 disabled = pythonOlder "3.7" || pythonAtLeast "3.11";
22 src = fetchFromGitHub {
23 owner = "sqlalchemyorg";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-+sDvl8z0O0cZyS1oZgt924hlOkYeHiStpXL9y9+JZ5I=";
29 propagatedBuildInputs = [
36 nativeCheckInputs = [ pytestCheckHook ];
38 pythonImportsCheck = [ "zimports" ];
41 description = "Python import rewriter";
42 homepage = "https://github.com/sqlalchemyorg/zimports";
43 license = licenses.mit;
44 maintainers = with maintainers; [ timokau ];