Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, isPy3k 3, fetchFromGitHub 4, buildPythonPackage 5, flake8-import-order 6, pyflakes 7, tomli 8, setuptools 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "zimports"; 15 version = "0.6.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "sqlalchemyorg"; 22 repo = "zimports"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-qm5mA8pCSLbkupGBo+ppHSW6uy1j/FfV3idvGQGhjqU="; 25 }; 26 27 propagatedBuildInputs = [ 28 flake8-import-order 29 pyflakes 30 setuptools 31 tomli 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ 39 "zimports" 40 ]; 41 42 meta = with lib; { 43 description = "Python import rewriter"; 44 homepage = "https://github.com/sqlalchemyorg/zimports"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ timokau ]; 47 }; 48}