3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #214088 from dotlambda/python-magic-fix

[staging-next] python310Packages.python-magic: fix tests
This commit is contained in:
Weijia Wang 2023-02-02 08:18:51 +01:00 committed by GitHub
commit f9b171789e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, substituteAll
, file
, pytestCheckHook
@ -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 = ''