python3Packages.nanoid: init at 2.0.0

This commit is contained in:
Martin Weinelt 2023-01-03 15:35:25 +01:00
parent 92fc29a8bc
commit 73f51168cb
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "nanoid";
version = "2.0.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-WoDK1enG6a46Qfovs0rhiffLQgsqXY+CvZ0jRm5O+mg=";
};
doCheck = false; # tests not in sdist, git not tagged
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"nanoid"
];
meta = with lib; {
description = "A tiny, secure, URL-friendly, unique string ID generator for Python";
homepage = "https://github.com/puyuan/py-nanoid";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -6088,6 +6088,8 @@ self: super: with self; {
nampa = callPackage ../development/python-modules/nampa { };
nanoid = callPackage ../development/python-modules/nanoid { };
nanoleaf = callPackage ../development/python-modules/nanoleaf { };
nomadnet = callPackage ../development/python-modules/nomadnet { };