mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / by-name / uc / uchecker / package.nix
blobe3729be50ece7ed3f2959344a66ab09732b9b713
1 { lib
2 , python3
3 , fetchFromGitHub
4 , fetchpatch
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "uchecker";
9   version = "0.1.2";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "cloudlinux";
14     repo = "kcare-uchecker";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-SST143oi0O9PcJbw4nxHwHNY6HkIGi1WMBzveUYVhJs=";
17   };
19   patches = [
20     # Switch to poetry-core, https://github.com/cloudlinux/kcare-uchecker/pull/52
21     (fetchpatch {
22       name = "switch-poetry-core.patch";
23       url = "https://github.com/cloudlinux/kcare-uchecker/commit/d7d5ab75efa6a355b3dd3190c1edbaba8110c885.patch";
24       hash = "sha256-YPPw6M7MGN8nguAvAwjmz0VEYm0RD98ZkoVIq9SP3sA=";
25     })
26   ];
28   nativeBuildInputs = with python3.pkgs; [
29     poetry-core
30   ];
32   nativeCheckInputs = with python3.pkgs; [
33     mock
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "uchecker"
39   ];
41   meta = with lib; {
42     description = "Simple tool to detect outdated shared libraries";
43     homepage = "https://github.com/cloudlinux/kcare-uchecker";
44     changelog = "https://github.com/cloudlinux/kcare-uchecker/releases/tag/v${version}";
45     license = licenses.gpl2Only;
46     maintainers = with maintainers; [ fab ];
47     mainProgram = "uchecker";
48   };