depot/third_party/nixpkgs/pkgs/development/python-modules/python-ulid/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

46 lines
936 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatch-fancy-pypi-readme
, hatch-vcs
, hatchling
, freezegun
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-ulid";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mdomke";
repo = "python-ulid";
rev = "refs/tags/${version}";
hash = "sha256-d5jCPxWUOfw/OCtbA9Db9+s1D5DAdL+vbPR8zavgbbo=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatch-vcs
hatchling
];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [ "ulid" ];
meta = with lib; {
description = "ULID implementation for Python";
homepage = "https://github.com/mdomke/python-ulid";
changelog = "https://github.com/mdomke/python-ulid/blob/${src.rev}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}