summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/clipman/default.nix
blob: 8f131f8f09fc9577b37eac105c75a588b82e2851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  dbus-next,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage (finalAttrs: {
  pname = "clipman";
  version = "3.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "NikitaBeloglazov";
    repo = "clipman";
    tag = "v${finalAttrs.version}";
    hash = "sha256-m50yxbbMBLooVQD1QYQi6QekaiQlzTHXSJIMdU+/+Rw=";
  };

  buildInputs = [
    dbus-next
  ];

  build-system = [
    setuptools
    setuptools-scm
  ];

  pythonImportsCheck = [
    "clipman"
  ];

  # no tests
  doCheck = false;

  meta = {
    homepage = "https://github.com/NikitaBeloglazov/clipman";
    description = "Python3 module for working with clipboard";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ Freed-Wu ];
    platforms = lib.platforms.unix;
  };
})