nixpkgs/pkgs/development/python-modules/ulid-transform/default.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 ];
};
}