mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
0215034f25
when they already rely on SRI hashes.
38 lines
686 B
Nix
38 lines
686 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flask
|
|
, bcrypt
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-bcrypt";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxcountryman";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
bcrypt
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"flask_bcrypt"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Brcrypt hashing for Flask";
|
|
homepage = "https://github.com/maxcountryman/flask-bcrypt";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|