forked from mirrors/nixpkgs
python.pkgs.zimports: init at 0.2.0
The author gives a pretty good overview of why one would want to use zimports over other import organizers: https://github.com/sqlalchemyorg/zimports/tree/0.2.0#zzzeek-why-are-you-writing-one-of-these-there-are-a-dozen-pep8-import-fixers
This commit is contained in:
parent
2d9888f61c
commit
c26ee28613
38
pkgs/development/python-modules/zimports/default.nix
Normal file
38
pkgs/development/python-modules/zimports/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, isPy3k
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, flake8-import-order
|
||||
, pyflakes
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zimports";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sqlalchemyorg";
|
||||
repo = "zimports";
|
||||
rev = version;
|
||||
sha256 = "0a5axflkk0wv0rdnrh8l2rgj8gh2pfkg5lrvr8x4yxxiifawrafc";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyflakes
|
||||
flake8-import-order
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python import rewriter";
|
||||
homepage = "https://github.com/sqlalchemyorg/zimports";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ timokau ];
|
||||
};
|
||||
}
|
|
@ -6010,6 +6010,8 @@ in {
|
|||
|
||||
zerorpc = callPackage ../development/python-modules/zerorpc { };
|
||||
|
||||
zimports = callPackage ../development/python-modules/zimports { };
|
||||
|
||||
zipstream = callPackage ../development/python-modules/zipstream { };
|
||||
|
||||
zodb = callPackage ../development/python-modules/zodb {};
|
||||
|
|
Loading…
Reference in a new issue