Merge pull request #43219 from leenaars/dkimpy
pythonPackages.dkimpy: 0.6.2 -> 0.8.1
This commit is contained in:
		
						commit
						2a8a5533d1
					
				
							
								
								
									
										28
									
								
								pkgs/development/python-modules/authres/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								pkgs/development/python-modules/authres/default.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
{ stdenv, fetchPypi, buildPythonPackage, python }:
 | 
			
		||||
 | 
			
		||||
buildPythonPackage rec {
 | 
			
		||||
  pname = "authres";
 | 
			
		||||
  version = "1.1.0";
 | 
			
		||||
 | 
			
		||||
  src = fetchPypi {
 | 
			
		||||
    inherit pname version;
 | 
			
		||||
    sha256 = "1mcllhrwr23hwa2jn3m15k29ks1205ymwafjzchh8ma664hnzv6v";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  checkPhase = ''
 | 
			
		||||
    # run doctests
 | 
			
		||||
    ${python.interpreter} -m authres
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
    description = "Email Authentication-Results Headers generation and parsing for Python/Python3";
 | 
			
		||||
    longDescription = ''
 | 
			
		||||
      Python module that implements various internet RFC's: 5451/7001/7601
 | 
			
		||||
      Authentication-Results Headers generation and parsing for
 | 
			
		||||
      Python/Python3.
 | 
			
		||||
    '';
 | 
			
		||||
    homepage = https://launchpad.net/authres;
 | 
			
		||||
    license = licenses.bsd3;
 | 
			
		||||
    maintainers = with maintainers; [ leenaars ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@ -1,38 +1,25 @@
 | 
			
		||||
{ stdenv, fetchurl, openssl, makeWrapper, buildPythonApplication
 | 
			
		||||
, pytest, dnspython }:
 | 
			
		||||
{ stdenv, fetchPypi, openssl, makeWrapper, buildPythonPackage
 | 
			
		||||
, pytest, dnspython, pynacl, authres, python }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  majorversion = "0.6";
 | 
			
		||||
  minorversion = "2";
 | 
			
		||||
in buildPythonApplication rec {
 | 
			
		||||
buildPythonPackage rec {
 | 
			
		||||
  pname = "dkimpy";
 | 
			
		||||
  version = "${majorversion}.${minorversion}";
 | 
			
		||||
  version = "0.8.1";
 | 
			
		||||
 | 
			
		||||
  src = fetchurl {
 | 
			
		||||
    url = "https://launchpad.net/${pname}/${majorversion}/${majorversion}.${minorversion}/+download/${pname}-${version}.tar.gz";
 | 
			
		||||
    sha256 = "1hagz8qk0v4ijfbcdq4z28bpgr2mkpr498z76i1vam2d50chmakl";
 | 
			
		||||
  };
 | 
			
		||||
  src = fetchPypi {
 | 
			
		||||
    inherit pname version;
 | 
			
		||||
    sha256 = "125xakqg2j5jp4k5kafpnpazh9d97ysgayrsgpvm3nkdj4g8hw1j";
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
  checkInputs = [ pytest ];
 | 
			
		||||
  propagatedBuildInputs =  [ openssl dnspython ];
 | 
			
		||||
  propagatedBuildInputs =  [ openssl dnspython pynacl authres ];
 | 
			
		||||
 | 
			
		||||
  patchPhase = ''
 | 
			
		||||
    substituteInPlace dknewkey.py --replace \
 | 
			
		||||
    substituteInPlace dkim/dknewkey.py --replace \
 | 
			
		||||
      /usr/bin/openssl ${openssl}/bin/openssl
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  checkPhase = ''
 | 
			
		||||
    python ./test.py
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  postInstall = ''
 | 
			
		||||
    mkdir -p $out/bin $out/libexec
 | 
			
		||||
    mv $out/bin/*.py $out/libexec
 | 
			
		||||
    makeWrapper "$out/libexec/dkimverify.py" $out/bin/dkimverify
 | 
			
		||||
    makeWrapper "$out/libexec/dkimsign.py" $out/bin/dkimsign
 | 
			
		||||
    makeWrapper "$out/libexec/arcverify.py" $out/bin/arcverify
 | 
			
		||||
    makeWrapper "$out/libexec/arcsign.py" $out/bin/arcsign
 | 
			
		||||
    makeWrapper "$out/libexec/dknewkey.py" $out/bin/dknewkey
 | 
			
		||||
    ${python.interpreter} ./test.py
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
 | 
			
		||||
@ -615,7 +615,7 @@ with pkgs;
 | 
			
		||||
 | 
			
		||||
  dgsh = callPackage ../shells/dgsh { };
 | 
			
		||||
 | 
			
		||||
  dkimpy = pythonPackages.dkimpy;
 | 
			
		||||
  dkimpy = with pythonPackages; toPythonApplication dkimpy;
 | 
			
		||||
 | 
			
		||||
  ecdsautils = callPackage ../tools/security/ecdsautils { };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -195,6 +195,8 @@ in {
 | 
			
		||||
    inherit (pkgs) augeas;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  authres = callPackage ../development/python-modules/authres { };
 | 
			
		||||
 | 
			
		||||
  autograd = callPackage ../development/python-modules/autograd { };
 | 
			
		||||
 | 
			
		||||
  automat = callPackage ../development/python-modules/automat { };
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user