about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/zxcvbn/default.nix
blob: 8c9a0af142cb1132d16beb9d21a46a6a2dae85d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:

buildPythonPackage rec {
  pname = "zxcvbn";
  version = "4.4.28";

  # no tests included in PyPI tarball
  src = fetchFromGitHub {
    owner = "dwolfhub";
    repo = "zxcvbn-python";
    rev = "45afdf0d3dd8477bc7e457629bb4bc9680794cd7"; # not tagged in repository
    sha256 = "0w0sx9ssjks8da973cdv5xi87yjsf038jqxmzj2y26xvpyjsg2v2";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Python implementation of Dropbox's realistic password strength estimator";
    homepage = "https://github.com/dwolfhub/zxcvbn-python";
    license = licenses.mit;
    maintainers = [ maintainers.marsam ];
  };
}