about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysvg-py3/default.nix
blob: 1647ce892ec9b6f9af8241f92e7a81a6c90fadb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, fetchFromGitHub
, buildPythonPackage
, python
}:

buildPythonPackage rec {
  pname = "pysvg-py3";
  version = "0.2.2-post3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "alorence";
    repo = pname;
    rev = version;
    sha256 = "1slync0knpcjgl4xpym8w4249iy6vmrwbarpnbjzn9xca8g1h2f0";
  };

  checkPhase = ''
    runHook preCheck
    mkdir testoutput
    ${python.interpreter} sample/tutorial.py
    runHook postCheck
  '';

  pythonImportsCheck = [ "pysvg" ];

  meta = {
    homepage = "https://github.com/alorence/pysvg-py3";
    description = "Creating SVG with Python";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ davidak ];
  };
}