python312Packages.svg-path: refactor

This commit is contained in:
natsukium 2024-11-03 02:09:36 +09:00
parent ce0110db43
commit 51a85e0829
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,7 +1,8 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
pillow,
pytestCheckHook,
pythonOlder,
@ -10,15 +11,19 @@
buildPythonPackage rec {
pname = "svg.path";
version = "6.3";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-6Td0CjFqf+yGrNIXq2Im4RL1EygHhSQSa7fqnb57Gt4=";
src = fetchFromGitHub {
owner = "regebro";
repo = "svg.path";
rev = "refs/tags/${version}";
hash = "sha256-qes6cKw/Ok0WgcPO/NPuREVNUbnlhm82jF90dK7Ay8U=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pillow
pytestCheckHook
@ -34,6 +39,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "SVG path objects and parser";
homepage = "https://github.com/regebro/svg.path";
changelog = "https://github.com/regebro/svg.path/blob/${version}/CHANGES.txt";
license = licenses.mit;
maintainers = [ ];
};