1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 colorama,
7 mock,
8 pyyaml,
9 pydantic,
10 backoff,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "nuclear";
16 version = "2.2.5";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "igrek51";
21 repo = "nuclear";
22 rev = version;
23 hash = "sha256-JuO7BKmlQE6bWKqy1QvX5U4A9YkKu/4ouTSJh9R7JGo=";
24 };
25
26 build-system = [ setuptools ];
27 dependencies = [
28 colorama
29 pyyaml
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 mock
35 pydantic
36 backoff
37 ];
38 disabledTestPaths = [
39 # Disabled because test tries to install bash in a non-NixOS way
40 "tests/autocomplete/test_bash_install.py"
41 ];
42 disabledTests = [
43 # Setting the time zone in nix sandbox does not work - to be investigated
44 "test_context_logger"
45 ];
46 pythonImportsCheck = [ "nuclear" ];
47
48 meta = with lib; {
49 homepage = "https://igrek51.github.io/nuclear/";
50 description = "Binding glue for CLI Python applications";
51 license = licenses.mit;
52 maintainers = with maintainers; [ parras ];
53 };
54}