diff options
| author | Shea Levy <shea@shealevy.com> | 2023-03-09 10:22:33 -0500 |
|---|---|---|
| committer | Shea Levy <shea@shealevy.com> | 2023-03-09 10:22:33 -0500 |
| commit | 57b37aa4205922a37cd82040ad4451335598bc06 (patch) | |
| tree | e00c8b706e71d90a8501e062b7314e887784039c /pkgs/development/python-modules/python-magic | |
| parent | b094f644af3baabbe5d0086ef7faf2e5a33d3581 (diff) | |
| parent | 6b79fe8cdc7bc70cc289478a1da0dc07fe8da9b0 (diff) | |
Merge branch 'master' into biscuit-cli-master
Diffstat (limited to 'pkgs/development/python-modules/python-magic')
| -rw-r--r-- | pkgs/development/python-modules/python-magic/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/python-magic/default.nix b/pkgs/development/python-modules/python-magic/default.nix index 3338fb6fa7d0..358a647d52d9 100644 --- a/pkgs/development/python-modules/python-magic/default.nix +++ b/pkgs/development/python-modules/python-magic/default.nix @@ -2,6 +2,7 @@ , stdenv , buildPythonPackage , fetchFromGitHub +, fetchpatch , substituteAll , file , pytestCheckHook @@ -23,13 +24,18 @@ 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 = '' export LC_ALL=en_US.UTF-8 ''; - checkInputs = [ + nativeCheckInputs = [ pytestCheckHook ]; |
