nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 746 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flask 5, bcrypt 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "flask-bcrypt"; 11 version = "1.0.1"; 12 13 src = fetchFromGitHub { 14 owner = "maxcountryman"; 15 repo = pname; 16 rev = version; 17 sha256 = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4="; 18 }; 19 20 propagatedBuildInputs = [ 21 flask 22 bcrypt 23 ]; 24 25 checkPhase = '' 26 runHook preCheck 27 ${python.interpreter} -m unittest discover 28 runHook postCheck 29 ''; 30 31 pythonImportsCheck = [ 32 "flask_bcrypt" 33 ]; 34 35 meta = with lib; { 36 description = "Brcrypt hashing for Flask"; 37 homepage = "https://github.com/maxcountryman/flask-bcrypt"; 38 license = licenses.bsd3; 39 maintainers = [ maintainers.costrouc ]; 40 }; 41}