2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymitv";
|
2021-03-19 17:17:44 +00:00
|
|
|
version = "1.5.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-22 21:28:39 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-0n4IS5W3nvYwKdl6FVf4upRrFDGdYHohsaXadFy8d8w=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|