about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mutesync/default.nix
blob: 98bf6ce074583a121fa364a31cab65ec4d93a718 (plain) (blame)
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
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchpatch
, fetchPypi
}:

buildPythonPackage rec {
  pname = "mutesync";
  version = "0.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "05r8maq59glwgysg98y1vrysfb1mkh9jpbag3ixl13n8jw8clp85";
  };

  propagatedBuildInputs = [
    aiohttp
    async-timeout
  ];

  patches = [
    # Don't parse requirements.txt, https://github.com/currentoor/pymutesync/pull/1
    (fetchpatch {
      name = "add-requirements.patch";
      url = "https://github.com/currentoor/pymutesync/commit/d66910fc83b1ae3060cdb3fe22a6f91fb70a67f0.patch";
      sha256 = "0axhgriyyv31b1r1yidxcrv0nyrqbb63xw5qrmv2iy2h0v96ijsk";
    })
  ];

  # Project has not published tests yet
  doCheck = false;
  pythonImportsCheck = [ "mutesync" ];

  meta = with lib; {
    description = "Python module for interacting with mutesync buttons";
    homepage = "https://github.com/currentoor/pymutesync";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}