git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pylatexenc: init at 2.1

Latex converter for Python. Check dependency of qiskit.

commita26f334e219d2b9a7d28b4a6c24442fe7204edb0 authorDrew Risinger <drewrisinger@users.noreply.github.com> dateFri 24 Jan 2020, 10:54 (7 years ago) parentb3a3d88
2 files changed+33
pkgs/development/python-modules/pylatexenc/default.nix+31 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pylatexenc/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytest
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "pylatexenc";
9+ version = "2.1";
10+
11+ src = fetchFromGitHub {
12+ owner = "phfaist";
13+ repo = pname;
14+ rev = "v${version}";
15+ sha256 = "0wnl00y5dl56aw9j4y21kqapraaravbycwfxdmjsbgl11nk4llx9";
16+ };
17+
18+ pythonImportsCheck = [ "pylatexenc" ];
19+ checkInputs = [ pytest ];
20+ checkPhase = ''
21+ pytest
22+ '';
23+
24+ meta = with lib; {
25+ description = "Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion";
26+ homepage = "https://pylatexenc.readthedocs.io";
27+ downloadPage = "https;//www.github.com/phfaist/pylatexenc";
28+ license = licenses.mit;
29+ maintainers = with maintainers; [ drewrisinger ];
30+ };
31+}
pkgs/top-level/python-packages.nix+2
@@ -3084,6 +3084,8 @@ in {
30843084
30853085 pylama = callPackage ../development/python-modules/pylama { };
30863086
3087+ pylatexenc = callPackage ../development/python-modules/pylatexenc { };
3088+
30873089 pymbolic = callPackage ../development/python-modules/pymbolic { };
30883090
30893091 pymediainfo = callPackage ../development/python-modules/pymediainfo { };