mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
python3Packages.python_magic: 0.4.24 -> 0.4.25
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
, python
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, substituteAll
|
||||
, file
|
||||
, glibcLocales
|
||||
@@ -11,23 +10,16 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-magic";
|
||||
version = "0.4.24";
|
||||
version = "0.4.25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ahupp";
|
||||
repo = "python-magic";
|
||||
rev = version;
|
||||
sha256 = "17jalhjbfd600lzfz296m0nvgp6c7vx1mgz82jbzn8hgdzknf4w0";
|
||||
sha256 = "sha256-h7YQVH5Z7zunT6AdLPBh3TWpxLpZ5unSHDhkVDFOWDI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# pull upstream patch to support file-5.41
|
||||
(fetchpatch {
|
||||
name = "file-5.41-compat.patch";
|
||||
url = "https://github.com/ahupp/python-magic/commit/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch";
|
||||
sha256 = "0vclaamb56nza1mcy88wjbkh81hnish2gzvl8visa2cknhgdmk50";
|
||||
})
|
||||
|
||||
(substituteAll {
|
||||
src = ./libmagic-path.patch;
|
||||
libmagic = "${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||
|
||||
Reference in New Issue
Block a user