1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 hatchling,
7 hatch-vcs,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "picobox";
14 version = "4.0.0";
15
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "ikalnytskyi";
22 repo = "picobox";
23 tag = version;
24 hash = "sha256-JtrwUVo3b4G34OUShX4eJS2IVubl4vBmEtB/Jhk4eJI=";
25 };
26
27 nativeBuildInputs = [
28 hatchling
29 hatch-vcs
30 ];
31
32 nativeCheckInputs = [
33 flask
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "picobox" ];
38
39 meta = with lib; {
40 description = "Opinionated dependency injection framework";
41 homepage = "https://github.com/ikalnytskyi/picobox";
42 license = licenses.mit;
43 maintainers = with maintainers; [ flokli ];
44 };
45}