1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "pymitv";
11 version = "1.5.0";
12 format = "setuptools";
13 disabled = pythonOlder "3.5";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-0n4IS5W3nvYwKdl6FVf4upRrFDGdYHohsaXadFy8d8w=";
18 };
19
20 propagatedBuildInputs = [ requests ];
21
22 # Project thas no tests
23 doCheck = false;
24 pythonImportsCheck = [ "pymitv" ];
25
26 meta = with lib; {
27 description = "Python client the Mi Tv 3";
28 homepage = "https://github.com/simse/pymitv";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ fab ];
31 };
32}