ec92d4d331
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
29 lines
651 B
Nix
29 lines
651 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "puremagic";
|
|
version = "1.10";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "025ih5q1qa40x88j7ngsdr5sf0dp400kwlfzz60i7v6fh0ms1zkg";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace '"argparse"' ""
|
|
'';
|
|
|
|
# test data not included on pypi
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "puremagic" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pure python implementation of magic file detection";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/cdgriffith/puremagic";
|
|
maintainers = with maintainers; [ globin ];
|
|
};
|
|
}
|