python311Packages.svg-py: init at 1.4.2

Type-safe Python library to generate SVG files

https://github.com/orsinium-labs/svg.py
This commit is contained in:
Fabian Affolter
2024-01-29 23:59:21 +01:00
parent 4299aee00f
commit e996236a89
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "svg-py";
version = "1.4.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "orsinium-labs";
repo = "svg.py";
rev = "refs/tags/${version}";
hash = "sha256-GbXPDYDq6zlsPJ/PAjR6OvarVrp7x3LGhseyTMwY8Dg=";
};
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [
pytestCheckHook
pyyaml
];
pythonImportsCheck = [
"svg"
];
disabledTestPaths = [
# Tests need additional files
"tests/test_attributes.py"
];
meta = with lib; {
description = "Type-safe Python library to generate SVG files";
homepage = "https://github.com/orsinium-labs/svg.py";
changelog = "https://github.com/orsinium-labs/svg.py/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -14014,6 +14014,8 @@ self: super: with self; {
svg-path = callPackage ../development/python-modules/svg-path { };
svg-py = callPackage ../development/python-modules/svg-py { };
svgelements = callPackage ../development/python-modules/svgelements { };
svgwrite = callPackage ../development/python-modules/svgwrite { };