python3Packages.resvg-py: init at 0.2.6
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pytest,
|
||||
pyperclip,
|
||||
xvfb-run,
|
||||
xclip,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "resvg-py";
|
||||
version = "0.2.6";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "baseplate-admin";
|
||||
repo = "resvg-py";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-lNNAIEEzwPEs/Qup6PXkMWezGHEAVs4VxuwBv5DgjWE=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-OrXWiMIgqZ2opl3XfC2zVwN9w0xz2u08mRA883tN6pM=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
pyperclip
|
||||
]
|
||||
++ lib.optionals stdenv.isLinux [
|
||||
xclip
|
||||
xvfb-run
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${lib.optionalString stdenv.hostPlatform.isLinux "xvfb-run"} python -m pytest ${lib.optionalString stdenv.hostPlatform.isDarwin "-k \"not test_multiple_layer_svg\""}
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"resvg_py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/baseplate-admin/resvg-py/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "High level wrapper of resvg for python";
|
||||
homepage = "https://github.com/baseplate-admin/resvg-py";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ hexa ];
|
||||
};
|
||||
})
|
||||
@@ -16466,6 +16466,8 @@ self: super: with self; {
|
||||
|
||||
result = callPackage ../development/python-modules/result { };
|
||||
|
||||
resvg-py = callPackage ../development/python-modules/resvg-py { };
|
||||
|
||||
rethinkdb = callPackage ../development/python-modules/rethinkdb { };
|
||||
|
||||
retinaface = callPackage ../development/python-modules/retinaface { };
|
||||
|
||||
Reference in New Issue
Block a user