 76e2a397c2
			
		
	
	
		76e2a397c2
		
	
	
	
	
		
			
			This treewide change targets Python packages that specifies pytest flags with pytestFlagsArray, and whose flags cannot be consructed by other pytestCheckHook-honoured arguments. Use the __structuredAttrs-agnostic argument pytestFlags instead of the deprecated pytestFlagsArray. For flags with option arguments, join each flag and their option argument into a single command-line argument following POSIX Utility Argument Syntax[1] for easier overriding (remove/replace). Examples: * [ "-W" "ignore:message:WarningClass" ] -> [ "-Wignore:message:WarningClass" ] * [ "--reruns" "3" ] -> [ "--reruns=3" ] [1]: https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   buildPythonPackage,
 | |
|   fetchFromGitHub,
 | |
|   setuptools,
 | |
|   bash,
 | |
|   openssh,
 | |
|   pytestCheckHook,
 | |
|   pythonOlder,
 | |
|   stdenv,
 | |
| }:
 | |
| 
 | |
| buildPythonPackage rec {
 | |
|   pname = "deploykit";
 | |
|   version = "1.1.1";
 | |
|   format = "setuptools";
 | |
| 
 | |
|   disabled = pythonOlder "3.8";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "numtide";
 | |
|     repo = "deploykit";
 | |
|     rev = version;
 | |
|     hash = "sha256-7PiXq1bQJ1jswLHNqCDSYZabgfp8HRuRt5YPGzd5Ej0=";
 | |
|   };
 | |
| 
 | |
|   buildInputs = [ setuptools ];
 | |
| 
 | |
|   nativeCheckInputs = [
 | |
|     bash
 | |
|     openssh
 | |
|     pytestCheckHook
 | |
|   ];
 | |
| 
 | |
|   disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_ssh" ];
 | |
| 
 | |
|   # don't swallow stdout/stderr
 | |
|   pytestFlags = [ "-s" ];
 | |
| 
 | |
|   pythonImportsCheck = [ "deploykit" ];
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Execute commands remote via ssh and locally in parallel with python";
 | |
|     homepage = "https://github.com/numtide/deploykit";
 | |
|     changelog = "https://github.com/numtide/deploykit/releases/tag/${version}";
 | |
|     license = licenses.mit;
 | |
|     maintainers = with maintainers; [
 | |
|       mic92
 | |
|       zowoq
 | |
|     ];
 | |
|     platforms = platforms.unix;
 | |
|   };
 | |
| }
 |