depot/third_party/nixpkgs/pkgs/development/python-modules/nanoid/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
657 B
Nix

{
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
nativeCheckInputs = [ 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; [ ];
};
}