tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.manimpango: init at 0.3.1
Angus Trau
4 years ago
e2df8d45
81d15682
+41
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
manimpango
default.nix
top-level
python-packages.nix
+37
pkgs/development/python-modules/manimpango/default.nix
···
1
1
+
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pkg-config, pango, cython, AppKit, pytestCheckHook }:
2
2
+
3
3
+
buildPythonPackage rec {
4
4
+
pname = "manimpango";
5
5
+
version = "0.3.1";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "ManimCommunity";
9
9
+
repo = pname;
10
10
+
rev = "v${version}";
11
11
+
sha256 = "ldZfvv5kloQ0uj0agxOP8cRh+Ix8f9Z0PT+pnhWYjiQ=";
12
12
+
};
13
13
+
14
14
+
postPatch = ''
15
15
+
substituteInPlace setup.cfg --replace "--cov --no-cov-on-fail" ""
16
16
+
'';
17
17
+
18
18
+
nativeBuildInputs = [ pkg-config ];
19
19
+
buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
20
20
+
propagatedBuildInputs = [
21
21
+
cython
22
22
+
];
23
23
+
24
24
+
preBuild = ''
25
25
+
${python.interpreter} setup.py build_ext --inplace
26
26
+
'';
27
27
+
28
28
+
checkInputs = [ pytestCheckHook ];
29
29
+
pythonImportsCheck = [ "manimpango" ];
30
30
+
31
31
+
meta = with lib; {
32
32
+
homepage = "https://github.com/ManimCommunity/ManimPango";
33
33
+
license = licenses.gpl3Plus;
34
34
+
description = "Binding for Pango";
35
35
+
maintainers = [ maintainers.angustrau ];
36
36
+
};
37
37
+
}
+4
pkgs/top-level/python-packages.nix
···
4581
4581
4582
4582
manhole = callPackage ../development/python-modules/manhole { };
4583
4583
4584
4584
+
manimpango = callPackage ../development/python-modules/manimpango {
4585
4585
+
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
4586
4586
+
};
4587
4587
+
4584
4588
manifestparser = callPackage ../development/python-modules/marionette-harness/manifestparser.nix { };
4585
4589
4586
4590
manuel = callPackage ../development/python-modules/manuel { };