pythonPackages.hkdf: refactor move to python-modules
This commit is contained in:
parent
45bbac9091
commit
8a821466cd
28
pkgs/development/python-modules/hkdf/default.nix
Normal file
28
pkgs/development/python-modules/hkdf/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, nose
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "hkdf";
|
||||||
|
version = "0.0.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ nose ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
|
||||||
|
homepage = "https://github.com/casebeer/python-hkdf";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2470,27 +2470,7 @@ in {
|
|||||||
|
|
||||||
lsi = callPackage ../development/python-modules/lsi { };
|
lsi = callPackage ../development/python-modules/lsi { };
|
||||||
|
|
||||||
hkdf = buildPythonPackage rec {
|
hkdf = callPackage ../development/python-modules/hkdf { };
|
||||||
name = "hkdf-${version}";
|
|
||||||
version = "0.0.3";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/h/hkdf/${name}.tar.gz";
|
|
||||||
sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ nose ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
nosetests
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
|
|
||||||
homepage = "https://github.com/casebeer/python-hkdf";
|
|
||||||
license = licenses.bsd2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
httpretty = buildPythonPackage rec {
|
httpretty = buildPythonPackage rec {
|
||||||
name = "httpretty-${version}";
|
name = "httpretty-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user