mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #219432 from fabaff/ulid-transform
python310Packages.ulid-transform: init at 0.4.0
This commit is contained in:
commit
43d89336f6
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -11993,6 +11993,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
ukrainealarm = callPackage ../development/python-modules/ukrainealarm { };
|
ukrainealarm = callPackage ../development/python-modules/ukrainealarm { };
|
||||||
|
|
||||||
|
ulid-transform = callPackage ../development/python-modules/ulid-transform { };
|
||||||
|
|
||||||
ultraheat-api = callPackage ../development/python-modules/ultraheat-api { };
|
ultraheat-api = callPackage ../development/python-modules/ultraheat-api { };
|
||||||
|
|
||||||
umalqurra = callPackage ../development/python-modules/umalqurra { };
|
umalqurra = callPackage ../development/python-modules/umalqurra { };
|
||||||
|
Loading…
Reference in New Issue
Block a user