forked from mirrors/nixpkgs
pythonPackages.bcrypt: 3.1.0 -> 3.1.2
This commit is contained in:
parent
69ed58d88f
commit
1f6ca0f37b
23
pkgs/development/python-modules/bcrypt.nix
Normal file
23
pkgs/development/python-modules/bcrypt.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ stdenv, buildPythonPackage, isPyPy, fetchurl
|
||||||
|
, cffi, pycparser, mock, pytest, py }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "bcrypt-${version}";
|
||||||
|
version = "3.1.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://pypi/b/bcrypt/${name}.tar.gz";
|
||||||
|
sha256 = "1al54xafv1aharpb22yv5rjjc63fm60z3pn2shbiq48ah9f1fvil";
|
||||||
|
};
|
||||||
|
buildInputs = [ pycparser mock pytest py ];
|
||||||
|
propagatedBuildInputs = optional (!isPyPy) cffi;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
maintainers = with maintainers; [ domenkozar ];
|
||||||
|
description = "Modern password hashing for your software and your servers";
|
||||||
|
license = licenses.asl20;
|
||||||
|
homepage = https://github.com/pyca/bcrypt/;
|
||||||
|
};
|
||||||
|
}
|
|
@ -4781,24 +4781,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
bcrypt = buildPythonPackage rec {
|
bcrypt = callPackage ../development/python-modules/bcrypt.nix { };
|
||||||
name = "bcrypt-${version}";
|
|
||||||
version = "3.1.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/b/bcrypt/${name}.tar.gz";
|
|
||||||
sha256 = "e54820d8b9eff357d1003f5b8d4b949a632b76b89610d8a933783fd476033ebe";
|
|
||||||
};
|
|
||||||
buildInputs = with self; [ pycparser mock pytest py ];
|
|
||||||
propagatedBuildInputs = with self; optional (!isPyPy) cffi;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
maintainers = with maintainers; [ domenkozar ];
|
|
||||||
description = "Modern password hashing for your software and your servers";
|
|
||||||
license = licenses.asl20;
|
|
||||||
homepage = https://github.com/pyca/bcrypt/;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
cffi = if isPyPy then null else buildPythonPackage rec {
|
cffi = if isPyPy then null else buildPythonPackage rec {
|
||||||
name = "cffi-1.9.1";
|
name = "cffi-1.9.1";
|
||||||
|
|
Loading…
Reference in a new issue