python310Packages.ulid-transform: init at 0.4.0
This commit is contained in:
parent
e5cc0358d7
commit
0385ba7150
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/ulid-transform/default.nix
Normal file
51
pkgs/development/python-modules/ulid-transform/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue