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
		
			
				
	
	
		
			34 lines
		
	
	
		
			698 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			698 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib
 | 
						|
, buildPythonPackage
 | 
						|
, fetchFromGitHub
 | 
						|
, isPy27
 | 
						|
, pytestCheckHook
 | 
						|
}:
 | 
						|
 | 
						|
buildPythonPackage rec {
 | 
						|
  pname = "gibberish-detector";
 | 
						|
  version = "0.1.1";
 | 
						|
  format = "setuptools";
 | 
						|
  disabled = isPy27;
 | 
						|
 | 
						|
  src = fetchFromGitHub {
 | 
						|
    owner = "domanchi";
 | 
						|
    repo = pname;
 | 
						|
    rev = "v${version}";
 | 
						|
    sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b";
 | 
						|
  };
 | 
						|
 | 
						|
  nativeCheckInputs = [
 | 
						|
    pytestCheckHook
 | 
						|
  ];
 | 
						|
 | 
						|
  pythonImportsCheck = [ "gibberish_detector" ];
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    description = "Python module to detect gibberish strings";
 | 
						|
    homepage = "https://github.com/domanchi/gibberish-detector";
 | 
						|
    license = licenses.mit;
 | 
						|
    maintainers = with maintainers; [ fab ];
 | 
						|
  };
 | 
						|
}
 |