diff options
Diffstat (limited to 'pkgs/development/python-modules/hkdf/default.nix')
-rw-r--r-- | pkgs/development/python-modules/hkdf/default.nix | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/hkdf/default.nix b/pkgs/development/python-modules/hkdf/default.nix index e316e91a0ef88..c062f293c4161 100644 --- a/pkgs/development/python-modules/hkdf/default.nix +++ b/pkgs/development/python-modules/hkdf/default.nix @@ -1,28 +1,36 @@ { lib, buildPythonPackage, - fetchPypi, - nose, + fetchFromGitHub, + pynose, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage { pname = "hkdf"; version = "0.0.3"; - format = "setuptools"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2"; + src = fetchFromGitHub { + owner = "casebeer"; + repo = "python-hkdf"; + rev = "cc3c9dbf0a271b27a7ac5cd04cc1485bbc3b4307"; + hash = "sha256-i3vJzUI7dpZbgZkz7Agd5RAeWisNWftdk/mkJBZkkLg="; }; - nativeCheckInputs = [ nose ]; + build-system = [ setuptools ]; + + pythonImportsCheck = [ "hkdf" ]; + + nativeCheckInputs = [ pynose ]; checkPhase = '' + runHook preCheck + nosetests - ''; - # no tests in PyPI tarball - doCheck = false; + runHook postCheck + ''; meta = with lib; { description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"; |