python310Packages.ulid-transform: init at 0.4.0

This commit is contained in:
Fabian Affolter 2023-03-04 00:52:45 +01:00
parent e5cc0358d7
commit 0385ba7150
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, cython
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "ulid-transform";
version = "0.4.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-JuTIE8FAVZkfn+byJ1z9/ep9Oih1uXpz/QTB2OfM0WU=";
};
nativeBuildInputs = [
cython
poetry-core
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=ulid_transform --cov-report=term-missing:skip-covered" ""
'';
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/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -11985,6 +11985,8 @@ self: super: with self; {
ukrainealarm = callPackage ../development/python-modules/ukrainealarm { };
ulid-transform = callPackage ../development/python-modules/ulid-transform { };
ultraheat-api = callPackage ../development/python-modules/ultraheat-api { };
umalqurra = callPackage ../development/python-modules/umalqurra { };