summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-magic
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-02 18:12:14 +0000
committerRobert Hensing <robert@roberthensing.nl>2022-12-02 18:12:14 +0000
commit7bfbf037d7fea8edca0ef75edd15ce4534052c5c (patch)
tree114669c9b210ea663710cd403350a43288b60e51 /pkgs/development/python-modules/python-magic
parent4e502a1c4d207610b0964b92bb41e574ed62e9c9 (diff)
parentfad052f056576d04a8eb7a6b374584a740e10706 (diff)
Merge remote-tracking branch 'upstream/master' into allow-configuration-of-roles
Diffstat (limited to 'pkgs/development/python-modules/python-magic')
-rw-r--r--pkgs/development/python-modules/python-magic/default.nix19
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/python-magic/default.nix b/pkgs/development/python-modules/python-magic/default.nix
index 381ea6713848..3338fb6fa7d0 100644
--- a/pkgs/development/python-modules/python-magic/default.nix
+++ b/pkgs/development/python-modules/python-magic/default.nix
@@ -1,22 +1,21 @@
{ lib
, stdenv
-, python
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, file
-, glibcLocales
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-magic";
- version = "0.4.25";
+ version = "0.4.27";
src = fetchFromGitHub {
owner = "ahupp";
repo = "python-magic";
rev = version;
- sha256 = "sha256-h7YQVH5Z7zunT6AdLPBh3TWpxLpZ5unSHDhkVDFOWDI=";
+ sha256 = "sha256-fZ+5xJ3P0EYK+6rQ8VzXv2zckKfEH5VUdISIR6ybIfQ=";
};
patches = [
@@ -26,16 +25,18 @@ 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";
license = licenses.mit;
- maintainers = with maintainers; [ ];
+ maintainers = with maintainers; [ SuperSandro2000 ];
};
}