depot/third_party/nixpkgs/pkgs/development/python-modules/nanoid/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

30 lines
637 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 = "Tiny, secure, URL-friendly, unique string ID generator for Python";
homepage = "https://github.com/puyuan/py-nanoid";
license = licenses.mit;
maintainers = [ ];
};
}