38 lines
		
	
	
		
			845 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			845 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   buildPythonPackage,
 | |
|   fetchFromGitHub,
 | |
|   requests,
 | |
|   setuptools,
 | |
| }:
 | |
| 
 | |
| buildPythonPackage rec {
 | |
|   pname = "growattserver";
 | |
|   version = "1.7.1";
 | |
|   pyproject = true;
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "indykoning";
 | |
|     repo = "PyPi_GrowattServer";
 | |
|     tag = version;
 | |
|     hash = "sha256-rob2+uXuBD5Gf05rNFFEW210JxrTbWN7knk9Tnz7wOE=";
 | |
|   };
 | |
| 
 | |
|   build-system = [ setuptools ];
 | |
| 
 | |
|   dependencies = [ requests ];
 | |
| 
 | |
|   # Project has no tests
 | |
|   doCheck = false;
 | |
| 
 | |
|   pythonImportsCheck = [ "growattServer" ];
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Python package to retrieve information from Growatt units";
 | |
|     homepage = "https://github.com/indykoning/PyPi_GrowattServer";
 | |
|     changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${src.tag}";
 | |
|     license = licenses.mit;
 | |
|     maintainers = with maintainers; [ fab ];
 | |
|   };
 | |
| }
 | 
