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