1{ lib 2, cython 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pytestCheckHook 7, pythonOlder 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "ulid-transform"; 13 version = "0.9.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchFromGitHub { 19 owner = "bdraco"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-r9uxPXpmQSsL1rX4d9TH87olFbZugdGdNG++Ygjie1I="; 23 }; 24 25 nativeBuildInputs = [ 26 cython 27 poetry-core 28 setuptools 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 postPatch = '' 36 substituteInPlace pyproject.toml \ 37 --replace " --cov=ulid_transform --cov-report=term-missing:skip-covered" "" 38 ''; 39 40 pythonImportsCheck = [ 41 "ulid_transform" 42 ]; 43 44 meta = with lib; { 45 description = "Library to create and transform ULIDs"; 46 homepage = "https://github.com/bdraco/ulid-transform"; 47 changelog = "https://github.com/bdraco/ulid-transform/releases/tag/v${version}"; 48 license = with licenses; [ mit ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}