Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
		
			
				
	
	
		
			28 lines
		
	
	
		
			601 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			601 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:
 | 
						|
 | 
						|
buildPythonPackage rec {
 | 
						|
  pname = "whichcraft";
 | 
						|
  version = "0.6.1";
 | 
						|
  format = "setuptools";
 | 
						|
 | 
						|
  src = fetchPypi {
 | 
						|
    inherit pname version;
 | 
						|
    sha256 = "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc";
 | 
						|
  };
 | 
						|
 | 
						|
  LC_ALL="en_US.utf-8";
 | 
						|
  buildInputs = [ glibcLocales ];
 | 
						|
 | 
						|
  nativeCheckInputs = [ pytest ];
 | 
						|
 | 
						|
  checkPhase = ''
 | 
						|
    py.test
 | 
						|
  '';
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    homepage = "https://github.com/pydanny/whichcraft";
 | 
						|
    description = "Cross-platform cross-python shutil.which functionality";
 | 
						|
    license = licenses.bsd3;
 | 
						|
  };
 | 
						|
}
 |