depot/third_party/nixpkgs/pkgs/development/python-modules/zimports/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

48 lines
851 B
Nix

{ 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
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"zimports"
];
meta = with lib; {
description = "Python import rewriter";
homepage = "https://github.com/sqlalchemyorg/zimports";
license = licenses.mit;
maintainers = with maintainers; [ timokau ];
};
}