pythonPackages.snug: init at 1.3.4
This commit is contained in:
		
							parent
							
								
									7fbc7acb2b
								
							
						
					
					
						commit
						440f19a36f
					
				
							
								
								
									
										37
									
								
								pkgs/development/python-modules/snug/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								pkgs/development/python-modules/snug/default.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,37 @@
 | 
			
		||||
{ buildPythonPackage, lib, fetchFromGitHub, glibcLocales
 | 
			
		||||
, pytest, pytest-mock, gentools
 | 
			
		||||
, typing, singledispatch, pythonOlder
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
buildPythonPackage rec {
 | 
			
		||||
  pname = "snug";
 | 
			
		||||
  version = "1.3.4";
 | 
			
		||||
 | 
			
		||||
  # Pypi doesn't ship the tests, so we fetch directly from GitHub
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "ariebovenberg";
 | 
			
		||||
    repo = "snug";
 | 
			
		||||
    rev = "v${version}";
 | 
			
		||||
    sha256 = "0jmg0sivz9ljazlnsrrqaizrb3r7asy5pa0dj3idx49gbig4589i";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Prevent unicode decoding error in setup.py
 | 
			
		||||
  # while reading README.rst and HISTORY.rst
 | 
			
		||||
  buildInputs = [ glibcLocales ];
 | 
			
		||||
  LC_ALL = "en_US.UTF-8";
 | 
			
		||||
 | 
			
		||||
  propagatedBuildInputs =
 | 
			
		||||
    lib.optionals (pythonOlder "3.4") [ singledispatch ] ++
 | 
			
		||||
    lib.optionals (pythonOlder "3.5") [ typing ];
 | 
			
		||||
 | 
			
		||||
  checkInputs = [ pytest pytest-mock gentools ];
 | 
			
		||||
  checkPhase = "pytest";
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Tiny toolkit for writing reusable interactions with web APIs";
 | 
			
		||||
    license = licenses.mit;
 | 
			
		||||
    homepage = https://snug.readthedocs.io/en/latest/;
 | 
			
		||||
    maintainers = with maintainers; [ mredaelli ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@ -3839,6 +3839,8 @@ in {
 | 
			
		||||
 | 
			
		||||
  snowballstemmer = callPackage ../development/python-modules/snowballstemmer { };
 | 
			
		||||
 | 
			
		||||
  snug = callPackage ../development/python-modules/snug { };
 | 
			
		||||
 | 
			
		||||
  spake2 = callPackage ../development/python-modules/spake2 { };
 | 
			
		||||
 | 
			
		||||
  sphfile = callPackage ../development/python-modules/sphfile { };
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user