about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymitv/default.nix
blob: ffaabb04a291565f5d0831db0a4624f1c3af6898 (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
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:

buildPythonPackage rec {
  pname = "pymitv";
  version = "1.4.3";
  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0jbs1zhqpnsyad3pd8cqy1byv8m5bq17ydc6crmrfkjbp6xvvg3x";
  };

  propagatedBuildInputs = [ requests ];

  # Projec thas no tests
  doCheck = false;
  pythonImportsCheck = [ "pymitv" ];

  meta = with lib; {
    description = "Python client the Mi Tv 3";
    homepage = "https://github.com/simse/pymitv";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}