Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / e3-core / default.nix
blobef0b31b177ab203e4fc68204e1b77376b2a446df
1 { autoPatchelfHook
2 , buildPythonPackage
3 , colorama
4 , coverage
5 , distro
6 , fetchFromGitHub
7 , httpretty
8 , lib
9 , mock
10 , packaging
11 , psutil
12 , pytest
13 , pytest-socket
14 , python-dateutil
15 , pyyaml
16 , requests
17 , requests-cache
18 , requests-toolbelt
19 , stdenv
20 , setuptools
21 , stevedore
22 , tomlkit
23 , tox
24 , tqdm
25 , typeguard
28 buildPythonPackage rec {
29   pname = "e3-core";
30   version = "22.4.0";
31   pyproject = true;
33   src = fetchFromGitHub {
34     owner = "AdaCore";
35     repo = "e3-core";
36     rev = "v${version}";
37     hash = "sha256-dgEk2/qRfAYwUz+e5TWKUy/aPLpmyWZ32OV1i7QM9Fs=";
38   };
40   patches = [
41     ./0001-use-distro-over-ld.patch
42   ];
44   nativeBuildInputs = [
45     autoPatchelfHook
46     setuptools
47   ];
49   propagatedBuildInputs = [
50     colorama
51     packaging
52     pyyaml
53     python-dateutil
54     requests
55     requests-cache
56     requests-toolbelt
57     tqdm
58     stevedore
59   ] ++ lib.optional stdenv.isLinux [
60     # See setup.py:24. These are required only on Linux. Darwin has its own set
61     # of requirements.
62     psutil
63     distro
64   ];
66   pythonImportsCheck = [ "e3" ];
68   # e3-core is tested with tox; it's hard to test without internet.
69   doCheck = false;
71   meta = with lib; {
72     changelog = "https://github.com/AdaCore/e3-core/releases/tag/${src.rev}";
73     homepage = "https://github.com/AdaCore/e3-core/";
74     description = "Core framework for developing portable automated build systems";
75     license = licenses.gpl3Only;
76     maintainers = with maintainers; [ atalii ];
77     mainProgram = "e3";
78     # See the comment regarding distro and psutil. Other platforms are supported
79     # upstream, but not by this package.
80     platforms = platforms.linux;
81   };