summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyswitchmate/default.nix
blob: e047bc78ddab531c8bf0fa6ceff6d6b5e63a4371 (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
{
  lib,
  bleak,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyswitchmate";
  version = "0.5.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Danielhiversen";
    repo = "pySwitchmate";
    tag = version;
    hash = "sha256-14rjlIsSFNP2OzuRamAJw9BaA+Z5EuQBEsrD02uQdFk=";
  };

  build-system = [ setuptools ];

  dependencies = [ bleak ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "switchmate" ];

  meta = {
    description = "A library to communicate with Switchmate";
    homepage = "https://github.com/Danielhiversen/pySwitchmate";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}