anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / svg-py / default.nix
blob30396791e8761fa2699e260abc300502db6fd136
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   flit-core,
6   pytestCheckHook,
7   pythonOlder,
8   pyyaml,
9 }:
11 buildPythonPackage rec {
12   pname = "svg-py";
13   version = "1.5.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "orsinium-labs";
20     repo = "svg.py";
21     rev = "refs/tags/${version}";
22     hash = "sha256-Lxzk3IVCD4PG36Pozz2crccwxCAAAM2QfS4rgwbjs6g=";
23   };
25   nativeBuildInputs = [ flit-core ];
27   nativeCheckInputs = [
28     pytestCheckHook
29     pyyaml
30   ];
32   pythonImportsCheck = [ "svg" ];
34   disabledTestPaths = [
35     # Tests need additional files
36     "tests/test_attributes.py"
37   ];
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/${version}";
43     license = licenses.mit;
44     maintainers = with maintainers; [ fab ];
45   };