1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytestCheckHook,
7 pythonOlder,
8 pyyaml,
9}:
10
11buildPythonPackage rec {
12 pname = "svg-py";
13 version = "1.8.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "orsinium-labs";
20 repo = "svg.py";
21 tag = version;
22 hash = "sha256-wHbAsmFkJ3VGBuaKElB+qT8OaKleJ2DgGKr0LvojWws=";
23 };
24
25 build-system = [ flit-core ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pyyaml
30 ];
31
32 pythonImportsCheck = [ "svg" ];
33
34 disabledTestPaths = [
35 # Tests need additional files
36 "tests/test_attributes.py"
37 ];
38
39 meta = with lib; {
40 description = "Type-safe Python library to generate SVG files";
41 homepage = "https://github.com/orsinium-labs/svg.py";
42 changelog = "https://github.com/orsinium-labs/svg.py/releases/tag/${src.tag}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}