Skip to content

Commit

Permalink
hkdf: reinit at 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Oct 15, 2024
1 parent a7bd30c commit 44b1923
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
41 changes: 41 additions & 0 deletions pkgs/by-name/hkdf/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonPackage {
pname = "hkdf";
version = "0.0.3";
pyproject = true;

src = fetchFromGitHub {
owner = "casebeer";
repo = "python-hkdf";
rev = "cc3c9dbf0a271b27a7ac5cd04cc1485bbc3b4307";
hash = "sha256-i3vJzUI7dpZbgZkz7Agd5RAeWisNWftdk/mkJBZkkLg=";
};

build-system = [
python3.pkgs.setuptools
];

pythonImportsCheck = [
"hkdf"
];

nativeCheckInputs = [
python3.pkgs.nose
];

checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';

meta = {
description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
homepage = "https://github.com/casebeer/python-hkdf";
license = lib.licenses.bsd2;
};
}
7 changes: 5 additions & 2 deletions pkgs/by-name/vula/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
python3,
fetchgit,
highctidh,
hkdf,
wrapGAppsHook,
}: let
inherit
Expand Down Expand Up @@ -34,7 +35,6 @@ in
(with python3.pkgs; [
click
cryptography
hkdf
packaging
pillow
pydbus
Expand All @@ -48,7 +48,10 @@ in
tkinter
zeroconf
])
++ [highctidh];
++ [
highctidh
hkdf
];

buildInputs = [libayatana-appindicator];
nativeBuildInputs = [wrapGAppsHook gobject-introspection];
Expand Down

0 comments on commit 44b1923

Please sign in to comment.