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