mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
e3a4a6438c
Diff: https://github.com/bdraco/ulid-transform/compare/refs/tags/v0.13.1...v1.0.2 Changelog: https://github.com/bdraco/ulid-transform/blob/v1.0.2/CHANGELOG.md
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
cython,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-benchmark,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ulid-transform";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = "ulid-transform";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-99hq329jUpok+rP8WzxN1yTOp15Zfy7tIGRpQMecrc0=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-benchmark
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
pythonImportsCheck = [ "ulid_transform" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library to create and transform ULIDs";
|
|
homepage = "https://github.com/bdraco/ulid-transform";
|
|
changelog = "https://github.com/bdraco/ulid-transform/blob/${src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|