Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / svg-py / default.nix
blob236e5fd3105da6653300ccb5321796132fe19278
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pytestCheckHook
6 , pythonOlder
7 , pyyaml
8 }:
10 buildPythonPackage rec {
11   pname = "svg-py";
12   version = "1.4.3";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "orsinium-labs";
19     repo = "svg.py";
20     rev = "refs/tags/${version}";
21     hash = "sha256-rnxznJM3ihuEJrD3ba6uMdGMozIrLw/QyGzA3JPygH4=";
22   };
24   nativeBuildInputs = [
25     flit-core
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30     pyyaml
31   ];
33   pythonImportsCheck = [
34     "svg"
35   ];
37   disabledTestPaths = [
38     # Tests need additional files
39     "tests/test_attributes.py"
40   ];
42   meta = with lib; {
43     description = "Type-safe Python library to generate SVG files";
44     homepage = "https://github.com/orsinium-labs/svg.py";
45     changelog = "https://github.com/orsinium-labs/svg.py/releases/tag/${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [ fab ];
48   };