rst2html5: put its expression in a separate file
As recommended by @7c6f434c and @FRidh, rst2html5 now resides in its proper file.
This commit is contained in:
		
							parent
							
								
									234b1cf794
								
							
						
					
					
						commit
						4a87eae13c
					
				
							
								
								
									
										23
									
								
								pkgs/tools/text/rst2html5/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								pkgs/tools/text/rst2html5/default.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,23 @@
 | 
			
		||||
{ stdenv, fetchurl, pythonPackages }:
 | 
			
		||||
 | 
			
		||||
pythonPackages.buildPythonPackage rec {
 | 
			
		||||
 | 
			
		||||
  name = "${pname}-${version}";
 | 
			
		||||
  pname = "rst2html5";
 | 
			
		||||
  version = "1.9.3";
 | 
			
		||||
 | 
			
		||||
  src = fetchurl {
 | 
			
		||||
    url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
 | 
			
		||||
    sha256 = "1js90asy7s0278b4p28inkkp0r7ajr5fk5pcdgcdw628a30vl3i6";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  propagatedBuildInputs = with pythonPackages;
 | 
			
		||||
  [ docutils genshi pygments beautifulsoup4 ];
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib;{
 | 
			
		||||
    homepage = "https://bitbucket.org/andre_felipe_dias/rst2html5";
 | 
			
		||||
    description = "Converts ReSTructuredText to (X)HTML5";
 | 
			
		||||
    license = licenses.mit;
 | 
			
		||||
    maintainers = with maintainers; [ AndersonTorres ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@ -3724,6 +3724,8 @@ with pkgs;
 | 
			
		||||
 | 
			
		||||
  redsocks = callPackage ../tools/networking/redsocks { };
 | 
			
		||||
 | 
			
		||||
  rst2html5 = callPackage ../tools/text/rst2html5 { };
 | 
			
		||||
 | 
			
		||||
  rt = callPackage ../servers/rt { };
 | 
			
		||||
 | 
			
		||||
  rtmpdump = callPackage ../tools/video/rtmpdump { };
 | 
			
		||||
 | 
			
		||||
@ -22637,30 +22637,7 @@ in {
 | 
			
		||||
      homepage = "https://github.com/goinnn/django-multiselectfield";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  rst2html5 = buildPythonPackage rec {
 | 
			
		||||
    name = "${pname}-${version}";
 | 
			
		||||
    pname = "rst2html5";
 | 
			
		||||
    version = "1.9.3";
 | 
			
		||||
 | 
			
		||||
    src = pkgs.fetchurl {
 | 
			
		||||
      url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
 | 
			
		||||
      sha256 = "1js90asy7s0278b4p28inkkp0r7ajr5fk5pcdgcdw628a30vl3i6";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    propagatedBuildInputs = with self;
 | 
			
		||||
      [ docutils genshi pygments beautifulsoup4 ];
 | 
			
		||||
 | 
			
		||||
    meta = {
 | 
			
		||||
      homepage = "https://bitbucket.org/andre_felipe_dias/rst2html5";
 | 
			
		||||
      description = "Converts ReSTructuredText to (X)HTML5";
 | 
			
		||||
      license = licenses.mit;
 | 
			
		||||
      maintainers = with maintainers; [ AndersonTorres ];
 | 
			
		||||
    };
 | 
			
		||||
    # TODO: treat rst2html5 as an ordinary package
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
  reviewboard = buildPythonPackage rec {
 | 
			
		||||
    name = "ReviewBoard-2.5.1.1";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user