nixpkgs/pkgs/development/python-modules/shortuuid/default.nix
2023-02-12 13:49:53 +01:00

36 lines
768 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "shortuuid";
version = "1.0.11";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-/HXyYVkUgVqOTLFQGzpRN0XLZu8P1fxvufjD+jSB94k=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"shortuuid"
];
meta = with lib; {
description = "Library to generate concise, unambiguous and URL-safe UUIDs";
homepage = "https://github.com/stochastic-technologies/shortuuid/";
changelog = "https://github.com/skorokithakis/shortuuid/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ zagy ];
};
}