mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
dkimpy: modernize
This commit is contained in:
committed by
Yohann Boniface
parent
f8dbf24ce1
commit
e8c3df1315
@@ -10,13 +10,13 @@
|
||||
authres,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "dkimpy";
|
||||
version = "1.1.8";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-tfYPtHu/XY12LxNLzqDDiOumtJg0KmgqIfFoZUUJS3c=";
|
||||
};
|
||||
|
||||
@@ -29,11 +29,13 @@ buildPythonPackage rec {
|
||||
authres
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace dkim/dknewkey.py --replace \
|
||||
/usr/bin/openssl ${openssl}/bin/openssl
|
||||
postPatch = ''
|
||||
substituteInPlace dkim/dknewkey.py --replace-fail \
|
||||
/usr/bin/openssl ${lib.getExe openssl}
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "dkim" ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
@@ -48,4 +50,4 @@ buildPythonPackage rec {
|
||||
homepage = "https://launchpad.net/dkimpy";
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user