nixpkgs/pkgs/development/python-modules/pymitv/default.nix

31 lines
619 B
Nix
Raw Normal View History

2021-02-20 14:34:29 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pymitv";
2021-03-18 10:03:06 +01:00
version = "1.5.0";
2021-02-20 14:34:29 +01:00
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
2021-03-18 10:03:06 +01:00
sha256 = "sha256-0n4IS5W3nvYwKdl6FVf4upRrFDGdYHohsaXadFy8d8w=";
2021-02-20 14:34:29 +01: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 ];
};
}