evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / oe / oelint-adv / package.nix
blob4d23cd3a611c687fc48d22bf0b97fbf111d00fbb
2   lib,
3   nix-update-script,
4   python3Packages,
5   fetchFromGitHub,
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "oelint-adv";
10   version = "6.1.0";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "priv-kweihmann";
15     repo = "oelint-adv";
16     rev = "refs/tags/${version}";
17     hash = "sha256-bDttjeHcIK90W7zPrKNAS4B1L9mibaRjQdnUAU2N8as=";
18   };
20   build-system = with python3Packages; [
21     setuptools
22   ];
24   dependencies = with python3Packages; [
25     anytree
26     argcomplete
27     colorama
28     oelint-parser
29     urllib3
30   ];
32   nativeCheckInputs = with python3Packages; [
33     pytest-cov-stub
34     pytest-forked
35     pytest-xdist
36     pytestCheckHook
37   ];
39   disabledTests = [
40     # requires network access
41     "TestClassOelintVarsHomepagePing"
42   ];
44   pythonRelaxDeps = [ "argcomplete" ];
46   pythonImportsCheck = [ "oelint_adv" ];
48   passthru.updateScript = nix-update-script { };
50   postPatch = ''
51     substituteInPlace setup.cfg \
52       --replace-fail "--random-order-bucket=global" "" \
53       --replace-fail "--random-order"               "" \
54       --replace-fail "--force-sugar"                "" \
55       --replace-fail "--old-summary"                ""
56   '';
58   meta = with lib; {
59     description = "Advanced bitbake-recipe linter";
60     mainProgram = "oelint-adv";
61     homepage = "https://github.com/priv-kweihmann/oelint-adv";
62     changelog = "https://github.com/priv-kweihmann/oelint-adv/releases/tag/v${version}";
63     license = licenses.bsd2;
64     maintainers = with maintainers; [ otavio ];
65   };