2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
cython,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-benchmark,
|
|
|
|
pytest-cov-stub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ulid-transform";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.2";
|
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bdraco";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "ulid-transform";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-99hq329jUpok+rP8WzxN1yTOp15Zfy7tIGRpQMecrc0=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
2023-03-04 12:14:45 +00:00
|
|
|
cython
|
|
|
|
poetry-core
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-cov-stub
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ulid_transform" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to create and transform ULIDs";
|
|
|
|
homepage = "https://github.com/bdraco/ulid-transform";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/bdraco/ulid-transform/blob/${src.rev}/CHANGELOG.md";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|