summary refs log blame commit diff
path: root/pkgs/development/python-modules/bellows/default.nix
blob: 7df23d1a25aabe56db49bf4a8e0016e4fc57e4c7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                    
 
                        
                    
                     
 



                         
                                                                    

    




                                                     
                           





                    


                 


                   

    
                    





                                                                               
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, click-log
, pure-pcapy3
, pyserial-asyncio
, voluptuous
, zigpy
, asynctest
, pytestCheckHook
, pytest-asyncio
}:

buildPythonPackage rec {
  pname = "bellows";
  version = "0.24.0";

  src = fetchFromGitHub {
    owner = "zigpy";
    repo = "bellows";
    rev = version;
    sha256 = "00sa4x1qzv861z9d83lk4lp1g2pqiv9hpawj92w4qn1wnqxbz6rw";
  };

  prePatch = ''
    substituteInPlace setup.py \
      --replace "click-log==0.2.1" "click-log>=0.2.1"
  '';

  propagatedBuildInputs = [
    click
    click-log
    pure-pcapy3
    pyserial-asyncio
    voluptuous
    zigpy
  ];

  checkInputs = [
    asynctest
    pytestCheckHook
    pytest-asyncio
  ];

  meta = with lib; {
    description = "A Python 3 project to implement EZSP for EmberZNet devices";
    homepage = "https://github.com/zigpy/bellows";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ etu mvnetbiz ];
  };
}