7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
46 lines
952 B
Nix
46 lines
952 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pyyaml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "svg-py";
|
|
version = "1.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orsinium-labs";
|
|
repo = "svg.py";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Lxzk3IVCD4PG36Pozz2crccwxCAAAM2QfS4rgwbjs6g=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|