mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
556 B
Nix
32 lines
556 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hkdf";
|
|
version = "0.0.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
|
|
};
|
|
|
|
nativeCheckInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
# no tests in PyPI tarball
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
|
|
homepage = "https://github.com/casebeer/python-hkdf";
|
|
license = licenses.bsd2;
|
|
};
|
|
|
|
}
|