10 , gobject-introspection
22 inherit (python3.pkgs) pycairo pygobject3 numpy buildPythonApplication;
23 in buildPythonApplication rec {
28 src = fetchFromGitHub {
32 hash = "sha256-rVKcxzWZRLcuxK8xRyRgvitXAh4uOEyqHswLeTdA2Mk=";
33 fetchSubmodules = true;
37 # Fix build due to setuptools issue.
38 # https://github.com/mypaint/mypaint/pull/1183
40 url = "https://github.com/mypaint/mypaint/commit/423950bec96d6057eac70442de577364d784a847.patch";
41 hash = "sha256-OxJJOi20bFMRibL59zx6svtMrkgeMYyEvbdSXbZHqpc=";
43 # https://github.com/mypaint/mypaint/pull/1193
45 name = "python-3.11-compatibility.patch";
46 url = "https://github.com/mypaint/mypaint/commit/032a155b72f2b021f66a994050d83f07342d04af.patch";
47 hash = "sha256-EI4WJbpZrCtFMKd6QdXlWpRpIHi37gJffDjclzTLaLc=";
49 # Fix drag-n-drop file opening
51 url = "https://github.com/mypaint/mypaint/commit/66b2ba98bd953afa73d0d6ac71040b14a4ea266b.patch";
52 hash = "sha256-4AWXD/JMpNA5otl2ad1ZLVPW49pycuOXGcgfzvj0XEE=";
54 # Fix crash with locked layer
56 url = "https://github.com/mypaint/mypaint/commit/0b720f8867f18acccc8e6ec770a9cc494aa81dcf.patch";
57 hash = "sha256-ahYeERiMLA8yKIXQota6/ApAbOW0XwsHO2JkEEMm1Ow=";
59 # Refactoring for the following patch to apply.
61 url = "https://github.com/mypaint/mypaint/commit/d7d2496401a112a178d5fa2e491f0cc7537d24cd.patch";
62 hash = "sha256-dIW6qWqY96+bsUDQQtGtjENvypnh//Ep3xW+wooCJ14=";
64 "gui/colors/hcywheel.py"
67 # Fix crash with hcy wheel masking
69 url = "https://github.com/mypaint/mypaint/commit/5496b1cd1113fcd46230d87760b7e6b51cc747bc.patch";
70 hash = "sha256-h+sE1LW04xDU2rofH5KqXsY1M0jacfBNBC+Zb0i6y1w=";
79 gobject-introspection # for setup hook
80 hicolor-icon-theme # fór setup hook
81 python3.pkgs.setuptools
96 # Mypaint checks for a presence of this theme scaffold and crashes when not present.
100 propagatedBuildInputs = [
106 nativeCheckInputs = [
113 ${python3.interpreter} setup.py build
121 ${python3.interpreter} setup.py managed_install --prefix=$out
129 HOME=$TEMPDIR ${python3.interpreter} setup.py test
135 description = "Graphics application for digital painters";
136 homepage = "http://mypaint.org/";
137 license = licenses.gpl2Plus;
138 platforms = platforms.linux;
139 maintainers = with maintainers; [ jtojnar ];