1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, hatch-fancy-pypi-readme 6, hatch-vcs 7, hatchling 8, freezegun 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "python-ulid"; 14 version = "2.2.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "mdomke"; 21 repo = "python-ulid"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-d5jCPxWUOfw/OCtbA9Db9+s1D5DAdL+vbPR8zavgbbo="; 24 }; 25 26 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 hatch-fancy-pypi-readme 30 hatch-vcs 31 hatchling 32 ]; 33 34 nativeCheckInputs = [ 35 freezegun 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "ulid" ]; 40 41 meta = with lib; { 42 description = "ULID implementation for Python"; 43 homepage = "https://github.com/mdomke/python-ulid"; 44 changelog = "https://github.com/mdomke/python-ulid/blob/${src.rev}/CHANGELOG.rst"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ natsukium ]; 47 }; 48}