python3Packages.zxcvbn: use tagged release
This commit is contained in:
parent
a08e69ffeb
commit
00f55143d9
|
@ -1,22 +1,24 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook }:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage rec {
|
||||||
pname = "zxcvbn";
|
pname = "zxcvbn";
|
||||||
version = "4.4.28";
|
version = "4.4.28";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
# no tests included in PyPI tarball
|
# no tests included in PyPI tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dwolfhub";
|
owner = "dwolfhub";
|
||||||
repo = "zxcvbn-python";
|
repo = "zxcvbn-python";
|
||||||
rev = "45afdf0d3dd8477bc7e457629bb4bc9680794cd7"; # not tagged in repository
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "0w0sx9ssjks8da973cdv5xi87yjsf038jqxmzj2y26xvpyjsg2v2";
|
hash = "sha256-etcST7pxlpOH5Q9KtOPGf1vmnkyjEp6Cd5QCmBjW9Hc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
checkPhase = ''
|
];
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python implementation of Dropbox's realistic password strength estimator";
|
description = "Python implementation of Dropbox's realistic password strength estimator";
|
||||||
|
|
Loading…
Reference in a new issue