summary refs log blame commit diff
path: root/pkgs/development/python-modules/tuyaha/default.nix
blob: 749ac4e19827e79154eef1c89d877c27fd649f27 (plain) (tree)
1
2
3
4
5
6
7
8
9







                        
                     




                          
                                                                   














                                                       
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:

buildPythonPackage rec {
  pname = "tuyaha";
  version = "0.0.11";

  src = fetchFromGitHub {
    owner = "PaulAnnekov";
    repo = pname;
    rev = version;
    sha256 = "sha256-PTIw/2NRHHiqV6E5oj2pMeGq1uApevKfT2n5zV8AQmM=";
  };

  propagatedBuildInputs = [ requests ];

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "tuyaha" ];

  meta = with lib; {
    description = "Python module with the Tuya API";
    homepage = "https://github.com/PaulAnnekov/tuyaha";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}