mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.python-magic: modernize and migrate to pyproject (#523014)
This commit is contained in:
commit
6e23e628ca
1 changed files with 7 additions and 4 deletions
|
|
@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue