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