diff options
Diffstat (limited to 'pkgs/development/python-modules/python-magic')
| -rw-r--r-- | pkgs/development/python-modules/python-magic/default.nix | 19 |
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 ]; }; } |
