30 lines
		
	
	
		
			713 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			713 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { lib
 | |
| , buildPythonPackage
 | |
| , fetchPypi
 | |
| , setuptools-scm
 | |
| }:
 | |
| 
 | |
| buildPythonPackage rec {
 | |
|   pname = "adafruit-platformdetect";
 | |
|   version = "3.5.0";
 | |
| 
 | |
|   src = fetchPypi {
 | |
|     pname = "Adafruit-PlatformDetect";
 | |
|     inherit version;
 | |
|     sha256 = "sha256-QJeb9+iiS4QZ7poOBp5oKD5KuagkG6cfTalbNRwrI1M=";
 | |
|   };
 | |
| 
 | |
|   nativeBuildInputs = [ setuptools-scm ];
 | |
| 
 | |
|   # Project has not published tests yet
 | |
|   doCheck = false;
 | |
|   pythonImportsCheck = [ "adafruit_platformdetect" ];
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Platform detection for use by Adafruit libraries";
 | |
|     homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
 | |
|     license = with licenses; [ mit ];
 | |
|     maintainers = with maintainers; [ fab ];
 | |
|   };
 | |
| }
 | 
