summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-magic
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-06-02 12:01:57 +0000
committerGitHub <noreply@github.com>2022-06-02 12:01:57 +0000
commiteb74cb92324fe1ac087ccf70293f24caceedef66 (patch)
tree9cdd67cf7d90d997b18c922bb6da24d3ca6b2a6d /pkgs/development/python-modules/python-magic
parent2ff678ec1ed2c8462e53ee6d633a5a8e245b520d (diff)
parentc58474eaa63632717c25c60712b3f4b45de3bce7 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/python-modules/python-magic')
-rw-r--r--pkgs/development/python-modules/python-magic/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/python-magic/default.nix b/pkgs/development/python-modules/python-magic/default.nix
index a9fa50a11c69..852b66b44e5f 100644
--- a/pkgs/development/python-modules/python-magic/default.nix
+++ b/pkgs/development/python-modules/python-magic/default.nix
@@ -5,18 +5,18 @@
, fetchFromGitHub
, substituteAll
, file
-, glibcLocales
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-magic";
- version = "0.4.25";
+ version = "0.4.26";
src = fetchFromGitHub {
owner = "ahupp";
repo = "python-magic";
rev = version;
- sha256 = "sha256-h7YQVH5Z7zunT6AdLPBh3TWpxLpZ5unSHDhkVDFOWDI=";
+ sha256 = "sha256-RcKldMwSRroNZNEl0jwuJG9C+3OIPBzk+CjqkxKK/eY=";
};
patches = [
@@ -26,12 +26,14 @@ buildPythonPackage rec {
})
];
- checkInputs = [ glibcLocales ];
-
- checkPhase = ''
- LC_ALL="en_US.UTF-8" ${python.interpreter} test/test.py
+ preCheck = ''
+ export LC_ALL=en_US.UTF-8
'';
+ checkInputs = [
+ pytestCheckHook
+ ];
+
meta = with lib; {
description = "A python interface to the libmagic file type identification library";
homepage = "https://github.com/ahupp/python-magic";