at 25.11-pre 921 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7}: 8buildPythonPackage rec { 9 pname = "uuid6"; 10 version = "2024.7.10"; 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-LSnX9j9ZPKruoODQ3QrYEpycZjsp4ZvfiC6GS+3xj7A="; 16 }; 17 18 # https://github.com/oittaa/uuid6-python/blob/e647035428d984452b9906b75bb007198533dfb1/setup.py#L12-L19 19 env.GITHUB_REF = "refs/tags/${version}"; 20 21 build-system = [ 22 setuptools 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 pytestFlagsArray = [ 30 "test/" 31 ]; 32 33 disabledTestPaths = [ 34 "test/test_uuid6.py" 35 ]; 36 37 pythonImportsCheck = [ 38 "uuid6" 39 ]; 40 41 meta = { 42 description = "New time-based UUID formats which are suited for use as a database key"; 43 homepage = "https://github.com/oittaa/uuid6-python"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ aleksana ]; 46 }; 47}