mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
python312Packages.svg-path: refactor
This commit is contained in:
parent
ce0110db43
commit
51a85e0829
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
|
setuptools,
|
||||||
pillow,
|
pillow,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
@ -10,15 +11,19 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "svg.path";
|
pname = "svg.path";
|
||||||
version = "6.3";
|
version = "6.3";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "regebro";
|
||||||
hash = "sha256-6Td0CjFqf+yGrNIXq2Im4RL1EygHhSQSa7fqnb57Gt4=";
|
repo = "svg.path";
|
||||||
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-qes6cKw/Ok0WgcPO/NPuREVNUbnlhm82jF90dK7Ay8U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pillow
|
pillow
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
@ -34,6 +39,7 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "SVG path objects and parser";
|
description = "SVG path objects and parser";
|
||||||
homepage = "https://github.com/regebro/svg.path";
|
homepage = "https://github.com/regebro/svg.path";
|
||||||
|
changelog = "https://github.com/regebro/svg.path/blob/${version}/CHANGES.txt";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user