3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.classify-imports: init at 4.1.0

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian Brandes 2022-07-03 15:31:49 +02:00
parent f039e591e2
commit 6c6dd0e32b
No known key found for this signature in database
GPG key ID: 074048E893713170
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "classify-imports";
version = "4.1.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
hash = "sha256-w/+Sf2ZVSDmFNPICJfAKzfukcznWyFBhi7hjIELtYGI=";
};
pythonImportsCheck = [
"classify_imports"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Utilities for refactoring imports in python-like syntax";
homepage = "https://github.com/asottile/classify-imports";
license = licenses.mit;
maintainers = with maintainers; [ gador ];
};
}

View file

@ -1706,6 +1706,8 @@ in {
claripy = callPackage ../development/python-modules/claripy { };
classify-imports = callPackage ../development/python-modules/classify-imports { };
cld2-cffi = callPackage ../development/python-modules/cld2-cffi { };
cle = callPackage ../development/python-modules/cle { };