python3Packages.python-magic: modernize and migrate to pyproject (#523014)

This commit is contained in:
Yohann Boniface 2026-05-24 11:24:34 +00:00 committed by GitHub
commit 6e23e628ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,17 +7,18 @@
replaceVars,
file,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "python-magic";
version = "0.4.27";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "ahupp";
repo = "python-magic";
rev = version;
tag = finalAttrs.version;
hash = "sha256-fZ+5xJ3P0EYK+6rQ8VzXv2zckKfEH5VUdISIR6ybIfQ=";
};
@ -43,6 +44,8 @@ buildPythonPackage rec {
./fix-parquet-test.patch
];
build-system = [ setuptools ];
preCheck = ''
export LC_ALL=en_US.UTF-8
'';
@ -59,4 +62,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = [ ];
};
}
})