anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / svg-path / default.nix
blob0939702069272b1d25817b32a8b9807eb410e89c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pillow,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "svg.path";
13   version = "6.3";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "regebro";
20     repo = "svg.path";
21     rev = "refs/tags/${version}";
22     hash = "sha256-qes6cKw/Ok0WgcPO/NPuREVNUbnlhm82jF90dK7Ay8U=";
23   };
25   build-system = [ setuptools ];
27   nativeCheckInputs = [
28     pillow
29     pytestCheckHook
30   ];
32   disabledTests = [
33     # generated image differs from example
34     "test_image"
35   ];
37   pythonImportsCheck = [ "svg.path" ];
39   meta = with lib; {
40     description = "SVG path objects and parser";
41     homepage = "https://github.com/regebro/svg.path";
42     changelog = "https://github.com/regebro/svg.path/blob/${version}/CHANGES.txt";
43     license = licenses.mit;
44     maintainers = [ ];
45   };