1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 six,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "importmagic";
11 version = "0.1.7";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "3f7757a5b74c9a291e20e12023bb3bf71bc2fa3adfb15a08570648ab83eaf8d8";
17 };
18
19 propagatedBuildInputs = [ six ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "importmagic" ];
24
25 meta = with lib; {
26 description = "Python Import Magic - automagically add, remove and manage imports";
27 homepage = "https://github.com/alecthomas/importmagic";
28 license = licenses.bsd0;
29 maintainers = with maintainers; [ onny ];
30 };
31}