about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-03-22 13:16:54 +0100
committerGitHub <noreply@github.com>2022-03-22 13:16:54 +0100
commit7b4ebcb7704a256aba3ba61b2af9a225e4b57558 (patch)
tree48eeea78d03ef8850013c2f0fd240c9b3f673108 /pkgs/development/python-modules
parentf24e4ea3876446b6b86f649a670a7e5399f9ebec (diff)
parent283acd12292c8905de453cd4971a340a76e9690f (diff)
downloadnixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.tar
nixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.tar.gz
nixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.tar.bz2
nixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.tar.lz
nixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.tar.xz
nixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.tar.zst
nixlib-7b4ebcb7704a256aba3ba61b2af9a225e4b57558.zip
Merge pull request #165201 from r-ryantm/auto-update/python3.10-manimpango
python310Packages.manimpango: 0.4.0.post2 -> 0.4.1
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/manimpango/default.nix52
1 files changed, 40 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/manimpango/default.nix b/pkgs/development/python-modules/manimpango/default.nix
index b717b4491173..f77aa81bbb60 100644
--- a/pkgs/development/python-modules/manimpango/default.nix
+++ b/pkgs/development/python-modules/manimpango/default.nix
@@ -1,37 +1,65 @@
-{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pkg-config, pango, cython, AppKit, pytestCheckHook }:
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, python
+, pkg-config
+, pango
+, cython
+, AppKit
+, pytestCheckHook
+, pythonOlder
+}:
 
 buildPythonPackage rec {
   pname = "manimpango";
-  version = "0.4.0.post2";
+  version = "0.4.1";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "ManimCommunity";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-BMRlEdvJJOUbsvKEoZx2qJqHSbL475dhBthUpnsXkn4=";
+    hash = "sha256-ourSUYBAFONdupdsjo/PtwRQpXS7HqLxrHj0Ejr/Wdw=";
   };
 
-  postPatch = ''
-    substituteInPlace setup.cfg --replace "--cov --no-cov-on-fail" ""
-  '';
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    pango
+  ] ++ lib.optionals stdenv.isDarwin [
+    AppKit
+  ];
 
-  nativeBuildInputs = [ pkg-config ];
-  buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
   propagatedBuildInputs = [
     cython
   ];
 
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  postPatch = ''
+    substituteInPlace setup.cfg \
+      --replace "--cov --no-cov-on-fail" ""
+  '';
+
   preBuild = ''
     ${python.interpreter} setup.py build_ext --inplace
   '';
 
-  checkInputs = [ pytestCheckHook ];
-  pythonImportsCheck = [ "manimpango" ];
+  pythonImportsCheck = [
+    "manimpango"
+  ];
 
   meta = with lib; {
+    description = "Binding for Pango";
     homepage = "https://github.com/ManimCommunity/ManimPango";
     license = licenses.mit;
-    description = "Binding for Pango";
-    maintainers = [ maintainers.emilytrau ];
+    maintainers = with maintainers; [ emilytrau ];
   };
 }