Skip to content

Commit

Permalink
[Backport release-24.05] present: fix crash caused by dependency (#34…
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu authored Oct 18, 2024
2 parents 4eb33fe + 0d142d9 commit 3ddda08
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/misc/present/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{ lib, python3Packages, fetchPypi }:

let
# https://github.com/NixOS/nixpkgs/issues/348788
mistune_2 = python3Packages.mistune.overridePythonAttrs(oldAttrs: rec {
version = "2.0.5";
src = fetchPypi {
inherit (oldAttrs) pname;
inherit version;
hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ=";
};
});
in
python3Packages.buildPythonPackage rec {
pname = "present";
version = "0.6.0";
Expand All @@ -14,7 +25,7 @@ python3Packages.buildPythonPackage rec {
pyyaml
pyfiglet
asciimatics
mistune
mistune_2
];

pythonImportsCheck = [ "present" ];
Expand Down

0 comments on commit 3ddda08

Please sign in to comment.