Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pysvg-py3 / default.nix
blob6f9ba796132e99e89ebd93951e306fcdd6440483
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , python
5 }:
7 buildPythonPackage rec {
8   pname = "pysvg-py3";
9   version = "0.2.2-post3";
11   src = fetchFromGitHub {
12     owner = "alorence";
13     repo = pname;
14     rev = version;
15     sha256 = "1slync0knpcjgl4xpym8w4249iy6vmrwbarpnbjzn9xca8g1h2f0";
16   };
18   checkPhase = ''
19     runHook preCheck
20     mkdir testoutput
21     ${python.interpreter} sample/tutorial.py
22     runHook postCheck
23   '';
25   pythonImportsCheck = [ "pysvg" ];
27   meta = {
28     homepage = "https://github.com/alorence/pysvg-py3";
29     description = "Creating SVG with Python";
30     license = lib.licenses.bsd2;
31     maintainers = with lib.maintainers; [ davidak ];
32   };