Skip to content

Commit

Permalink
Merge pull request NixOS#214088 from dotlambda/python-magic-fix
Browse files Browse the repository at this point in the history
[staging-next] python310Packages.python-magic: fix tests
  • Loading branch information
wegank authored Feb 2, 2023
2 parents ffbbb55 + ad3ab4f commit f9b1717
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/python-magic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, substituteAll
, file
, pytestCheckHook
Expand All @@ -23,6 +24,11 @@ buildPythonPackage rec {
src = ./libmagic-path.patch;
libmagic = "${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}";
})
(fetchpatch {
name = "update-test-for-upstream-added-gzip-extensions.patch";
url = "https://github.com/ahupp/python-magic/commit/4ffcd59113fa26d7c2e9d5897b1eef919fd4b457.patch";
hash = "sha256-67GpjlGiR4/os/iZ69V+ZziVLpjmid+7t+gQ2aQy9I0=";
})
];

preCheck = ''
Expand Down

0 comments on commit f9b1717

Please sign in to comment.