about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/zxcvbn/default.nix
blob: 91b9d03ccc2eb8a3428728b0490651aa39912a32 (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
28
29
30
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook }:

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

  # no tests included in PyPI tarball
  src = fetchFromGitHub {
    owner = "dwolfhub";
    repo = "zxcvbn-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-etcST7pxlpOH5Q9KtOPGf1vmnkyjEp6Cd5QCmBjW9Hc=";
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

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