2021-09-25 12:15:24 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-05-09 17:49:11 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "puremagic";
|
2021-09-25 11:45:46 +02:00
|
|
|
version = "1.11";
|
2021-05-09 17:49:11 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-25 11:45:46 +02:00
|
|
|
sha256 = "09d762b9d83c65a83617ee57a3532eb10663f394c1caf81390516c5b1cc0fc6b";
|
2021-05-09 17:49:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|