blob: 0d3ad9f770d7f20759e3d3c1110a6a81ed11fb94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchPypi,
six,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "importmagic";
version = "0.1.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-P3dXpbdMmikeIOEgI7s79xvC+jrfsVoIVwZIq4Pq+Ng=";
};
patches = [
# https://github.com/alecthomas/importmagic/issues/67
./python-312.patch
];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "importmagic" ];
meta = {
description = "Python Import Magic - automagically add, remove and manage imports";
homepage = "https://github.com/alecthomas/importmagic";
license = lib.licenses.bsd0;
maintainers = with lib.maintainers; [ onny ];
};
}
|