python310Packages.python-magic: 0.4.25 -> 0.4.26

This commit is contained in:
Sandro Jäckel 2022-06-01 23:37:49 +02:00
parent 5b906c698d
commit fbaef9d855
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -5,18 +5,18 @@
, fetchFromGitHub , fetchFromGitHub
, substituteAll , substituteAll
, file , file
, glibcLocales , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-magic"; pname = "python-magic";
version = "0.4.25"; version = "0.4.26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ahupp"; owner = "ahupp";
repo = "python-magic"; repo = "python-magic";
rev = version; rev = version;
sha256 = "sha256-h7YQVH5Z7zunT6AdLPBh3TWpxLpZ5unSHDhkVDFOWDI="; sha256 = "sha256-RcKldMwSRroNZNEl0jwuJG9C+3OIPBzk+CjqkxKK/eY=";
}; };
patches = [ patches = [
@ -26,12 +26,14 @@ buildPythonPackage rec {
}) })
]; ];
checkInputs = [ glibcLocales ]; preCheck = ''
export LC_ALL=en_US.UTF-8
checkPhase = ''
LC_ALL="en_US.UTF-8" ${python.interpreter} test/test.py
''; '';
checkInputs = [
pytestCheckHook
];
meta = with lib; { meta = with lib; {
description = "A python interface to the libmagic file type identification library"; description = "A python interface to the libmagic file type identification library";
homepage = "https://github.com/ahupp/python-magic"; homepage = "https://github.com/ahupp/python-magic";